This commit is contained in:
Sergey Alirzaev 2025-09-11 18:50:08 +02:00 committed by GitHub
commit 01acd6a7d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -35,7 +35,6 @@ type Core struct {
links links links links
proto protoHandler proto protoHandler
log Logger log Logger
addPeerTimer *time.Timer
config struct { config struct {
tls *tls.Config // immutable after startup tls *tls.Config // immutable after startup
//_peers map[Peer]*linkInfo // configurable after startup //_peers map[Peer]*linkInfo // configurable after startup
@ -160,10 +159,6 @@ func (c *Core) _close() error {
c.cancel() c.cancel()
c.links.shutdown() c.links.shutdown()
err := c.PacketConn.Close() err := c.PacketConn.Close()
if c.addPeerTimer != nil {
c.addPeerTimer.Stop()
c.addPeerTimer = nil
}
return err return err
} }