mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Shut down listeners when stopping
This commit is contained in:
parent
b0df9e2f31
commit
b959f53fee
3 changed files with 16 additions and 0 deletions
|
@ -194,7 +194,9 @@ func (c *Core) _stop() {
|
|||
if c.addPeerTimer != nil {
|
||||
c.addPeerTimer.Stop()
|
||||
}
|
||||
c.link.stop()
|
||||
for _, peer := range c.GetPeers() {
|
||||
c.DisconnectPeer(peer.Port)
|
||||
}
|
||||
c.log.Infoln("Stopped")
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue