4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-06-14 18:36:07 +00:00

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