mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 14:15:06 +03:00
WIP close the ironwood PacketConn when shutting down
This commit is contained in:
parent
b4224aa02d
commit
ed85cf08f2
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue