mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-03-09 15:40:15 +00:00
Lint tweaks
This commit is contained in:
parent
d24d3fa047
commit
d9fe6f72ac
5 changed files with 12 additions and 13 deletions
|
|
@ -127,7 +127,7 @@ func (c *Core) _addPeerLoop() {
|
|||
func (c *Core) Stop() {
|
||||
phony.Block(c, func() {
|
||||
c.log.Infoln("Stopping...")
|
||||
c._close()
|
||||
_ = c._close()
|
||||
c.log.Infoln("Stopped")
|
||||
})
|
||||
}
|
||||
|
|
@ -135,7 +135,7 @@ func (c *Core) Stop() {
|
|||
// This function is unsafe and should only be ran by the core actor.
|
||||
func (c *Core) _close() error {
|
||||
c.cancel()
|
||||
_ = c.links.shutdown()
|
||||
c.links.shutdown()
|
||||
err := c.PacketConn.Close()
|
||||
if c.addPeerTimer != nil {
|
||||
c.addPeerTimer.Stop()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue