Skip to content

Commit

Permalink
Merge pull request #2072 from OffchainLabs/fix-eth-client
Browse files Browse the repository at this point in the history
Fix ethclient
  • Loading branch information
PlasmaPower committed Feb 23, 2022
2 parents e67da09 + c600519 commit baf03bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/arb-util/ethutils/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit baf03bb

Please sign in to comment.