OSDN Git Service

Add event resource release when node stop (#1540)
authoryahtoo <yahtoo.ma@gmail.com>
Thu, 27 Dec 2018 08:46:32 +0000 (16:46 +0800)
committerPaladz <yzhu101@uottawa.ca>
Thu, 27 Dec 2018 08:46:32 +0000 (16:46 +0800)
node/node.go

index 8feb5f0..2399fd7 100644 (file)
@@ -276,6 +276,7 @@ func (n *Node) OnStop() {
        if !n.config.VaultMode {
                n.syncManager.Stop()
        }
+       n.eventDispatcher.Stop()
 }
 
 func (n *Node) RunForever() {