diff --git a/rpc/jsonrpc/client/ws_client.go b/rpc/jsonrpc/client/ws_client.go index f93bdae0b00..109f4fd4be9 100644 --- a/rpc/jsonrpc/client/ws_client.go +++ b/rpc/jsonrpc/client/ws_client.go @@ -213,6 +213,7 @@ func (c *WSClient) Stop() error { } // only close user-facing channels when we can't write to them c.wg.Wait() + c.PingPongLatencyTimer.Stop() close(c.ResponsesCh) return nil