mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-22 09:30:28 +00:00
move position of log line on shutdown
This commit is contained in:
parent
5b6f730f18
commit
eeadffe4a5
@ -158,9 +158,9 @@ func (c *Core) Stop() {
|
|||||||
|
|
||||||
// This function is unsafe and should only be ran by the core actor.
|
// This function is unsafe and should only be ran by the core actor.
|
||||||
func (c *Core) _stop() {
|
func (c *Core) _stop() {
|
||||||
|
c.log.Infoln("Stopping...")
|
||||||
c.ctxCancel()
|
c.ctxCancel()
|
||||||
c.PacketConn.Close()
|
c.PacketConn.Close()
|
||||||
c.log.Infoln("Stopping...")
|
|
||||||
if c.addPeerTimer != nil {
|
if c.addPeerTimer != nil {
|
||||||
c.addPeerTimer.Stop()
|
c.addPeerTimer.Stop()
|
||||||
c.addPeerTimer = nil
|
c.addPeerTimer = nil
|
||||||
|
Loading…
Reference in New Issue
Block a user