mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 21:01:21 +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:
@ -121,12 +121,7 @@ func (n *Node) Start() error {
|
||||
func (n *Node) Stop() {
|
||||
n.Online = false
|
||||
|
||||
n.em.RegisterLatencyCallback(nil)
|
||||
n.em.Unsubscribe(tmtypes.EventStringNewBlockHeader())
|
||||
n.em.RegisterDisconnectCallback(nil)
|
||||
|
||||
// FIXME stop blocks at event_meter.go:140
|
||||
// n.em.Stop()
|
||||
n.em.Stop()
|
||||
|
||||
close(n.quit)
|
||||
}
|
||||
|
Reference in New Issue
Block a user