mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
fix shutdown deadlock
This commit is contained in:
parent
e926a3be6d
commit
d47797088f
2 changed files with 4 additions and 2 deletions
|
@ -195,8 +195,10 @@ func (c *Core) _stop() {
|
|||
c.addPeerTimer.Stop()
|
||||
}
|
||||
c.link.stop()
|
||||
/* FIXME this deadlocks, need a waitgroup or something to coordinate shutdown
|
||||
for _, peer := range c.GetPeers() {
|
||||
c.DisconnectPeer(peer.Port)
|
||||
}
|
||||
*/
|
||||
c.log.Infoln("Stopped")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue