Skip to content

Commit

Permalink
Fix ethclient
Browse files Browse the repository at this point in the history
  • Loading branch information
hkalodner committed Feb 23, 2022
1 parent e67da09 commit c600519
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 c600519

Please sign in to comment.