Disconnect peers when stopping, stop modules before core

This commit is contained in:
Neil Alexander 2019-09-18 15:22:17 +01:00
parent 846df4789a
commit 00a972b74e
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 20 additions and 13 deletions

View file

@ -292,10 +292,10 @@ exit:
}
func (n *node) shutdown() {
n.core.Stop()
n.admin.Stop()
n.multicast.Stop()
n.tuntap.Stop()
n.core.Stop()
os.Exit(0)
}