From c60051946f10cc5cc1b5f36259595ec1ff9b544e Mon Sep 17 00:00:00 2001 From: Harry Kalodner Date: Wed, 23 Feb 2022 14:46:33 -0500 Subject: [PATCH] Fix ethclient --- packages/arb-util/ethutils/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/arb-util/ethutils/client.go b/packages/arb-util/ethutils/client.go index cca214e801..88b6228705 100644 --- a/packages/arb-util/ethutils/client.go +++ b/packages/arb-util/ethutils/client.go @@ -78,7 +78,7 @@ func NewRPCEthClient(url string) (*RPCEthClient, error) { func (r *RPCEthClient) reconnect() error { r.Lock() defer r.Unlock() - if atomic.LoadUint64(&r.errCount) < maxErrCount { + if atomic.LoadUint64(&r.errCount) < maxErrCount && r.eth != nil { // We must have already reconnected return nil }