[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:
Anton Kaliaev
2017-03-21 20:35:40 +04:00
parent dee06a92d9
commit 6e00ce9bbd
2 changed files with 3 additions and 7 deletions

View File

@ -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)
}