From ed85cf08f23916b9a4deed70570b34ea5c6ee1ab Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 8 May 2021 12:31:26 -0500 Subject: [PATCH] WIP close the ironwood PacketConn when shutting down --- src/yggdrasil/core.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/yggdrasil/core.go b/src/yggdrasil/core.go index 351e1904..4a55b007 100644 --- a/src/yggdrasil/core.go +++ b/src/yggdrasil/core.go @@ -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()