Skip to content

Commit 33831f6

Browse files
l29ahneilalexander
authored andcommitted
core: removed unused addPeerTimer code
Resolves #1279
1 parent 962adc2 commit 33831f6

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/core/core.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import (
88
"io"
99
"net"
1010
"net/url"
11-
"time"
1211

1312
iwe "github.com/Arceliar/ironwood/encrypted"
1413
iwn "github.com/Arceliar/ironwood/network"
@@ -35,7 +34,6 @@ type Core struct {
3534
links links
3635
proto protoHandler
3736
log Logger
38-
addPeerTimer *time.Timer
3937
config struct {
4038
tls *tls.Config // immutable after startup
4139
//_peers map[Peer]*linkInfo // configurable after startup
@@ -160,10 +158,6 @@ func (c *Core) _close() error {
160158
c.cancel()
161159
c.links.shutdown()
162160
err := c.PacketConn.Close()
163-
if c.addPeerTimer != nil {
164-
c.addPeerTimer.Stop()
165-
c.addPeerTimer = nil
166-
}
167161
return err
168162
}
169163

0 commit comments

Comments
 (0)