mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 03:31:42 +00:00
[tm-monitor] fix blocking issue
as you can see the mistake is that we listen for quit instead of closing it.
This commit is contained in:
@ -140,8 +140,9 @@ func (em *EventMeter) Start() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Stop stops the EventMeter.
|
||||
func (em *EventMeter) Stop() {
|
||||
<-em.quit
|
||||
close(em.quit)
|
||||
|
||||
em.RegisterDisconnectCallback(nil) // so we don't try and reconnect
|
||||
em.wsc.Stop() // close(wsc.Quit)
|
||||
|
Reference in New Issue
Block a user