core: removed unused addPeerTimer code

Resolves #1279
This commit is contained in:
Sergey Alirzaev
2025-09-11 18:49:15 +02:00
committed by Neil Alexander
parent 962adc2994
commit 33831f606f

View File

@@ -8,7 +8,6 @@ import (
"io" "io"
"net" "net"
"net/url" "net/url"
"time"
iwe "github.com/Arceliar/ironwood/encrypted" iwe "github.com/Arceliar/ironwood/encrypted"
iwn "github.com/Arceliar/ironwood/network" iwn "github.com/Arceliar/ironwood/network"
@@ -35,7 +34,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 +158,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
} }