mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
move position of log line on shutdown
This commit is contained in:
parent
5b6f730f18
commit
eeadffe4a5
1 changed files with 1 additions and 1 deletions
|
@ -158,9 +158,9 @@ func (c *Core) Stop() {
|
|||
|
||||
// This function is unsafe and should only be ran by the core actor.
|
||||
func (c *Core) _stop() {
|
||||
c.log.Infoln("Stopping...")
|
||||
c.ctxCancel()
|
||||
c.PacketConn.Close()
|
||||
c.log.Infoln("Stopping...")
|
||||
if c.addPeerTimer != nil {
|
||||
c.addPeerTimer.Stop()
|
||||
c.addPeerTimer = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue