mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 10:05:17 +00:00
WIP close the ironwood PacketConn when shutting down
This commit is contained in:
parent
b4224aa02d
commit
ed85cf08f2
@ -175,6 +175,7 @@ func (c *Core) Stop() {
|
||||
|
||||
// This function is unsafe and should only be ran by the core actor.
|
||||
func (c *Core) _stop() {
|
||||
c.PacketConn.Close()
|
||||
c.log.Infoln("Stopping...")
|
||||
if c.addPeerTimer != nil {
|
||||
c.addPeerTimer.Stop()
|
||||
|
Loading…
Reference in New Issue
Block a user