Lint tweaks

This commit is contained in:
Neil Alexander 2022-09-24 17:05:44 +01:00
parent d24d3fa047
commit d9fe6f72ac
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
5 changed files with 12 additions and 13 deletions

View file

@ -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()