diff --git a/src/core/core.go b/src/core/core.go index a7f9fe96..71e267fa 100644 --- a/src/core/core.go +++ b/src/core/core.go @@ -8,7 +8,6 @@ import ( "io" "net" "net/url" - "time" iwe "github.com/Arceliar/ironwood/encrypted" iwn "github.com/Arceliar/ironwood/network" @@ -35,7 +34,6 @@ type Core struct { links links proto protoHandler log Logger - addPeerTimer *time.Timer config struct { tls *tls.Config // immutable after startup //_peers map[Peer]*linkInfo // configurable after startup @@ -160,10 +158,6 @@ func (c *Core) _close() error { c.cancel() c.links.shutdown() err := c.PacketConn.Close() - if c.addPeerTimer != nil { - c.addPeerTimer.Stop() - c.addPeerTimer = nil - } return err }