mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-03 11:45:18 +00:00
@@ -529,7 +529,9 @@ func (w *WSEvents) OnStart() error {
|
||||
|
||||
// OnStop implements service.Service by stopping WSClient.
|
||||
func (w *WSEvents) OnStop() {
|
||||
_ = w.ws.Stop()
|
||||
if err := w.ws.Stop(); err != nil {
|
||||
w.Logger.Error("Can't stop ws client", "err", err)
|
||||
}
|
||||
}
|
||||
|
||||
// Subscribe implements EventsClient by using WSClient to subscribe given
|
||||
|
||||
Reference in New Issue
Block a user