mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-30 13:11:38 +00:00
close ws connection on Stop
This commit is contained in:
@ -85,6 +85,8 @@ func (wsc *WSClient) dial() error {
|
||||
|
||||
func (wsc *WSClient) OnStop() {
|
||||
wsc.BaseService.OnStop()
|
||||
wsc.Conn.Close()
|
||||
wsc.Conn = nil
|
||||
// ResultsCh/ErrorsCh is closed in receiveEventsRoutine.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user