We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 962adc2 commit 33831f6Copy full SHA for 33831f6
src/core/core.go
@@ -8,7 +8,6 @@ import (
8
"io"
9
"net"
10
"net/url"
11
- "time"
12
13
iwe "github.com/Arceliar/ironwood/encrypted"
14
iwn "github.com/Arceliar/ironwood/network"
@@ -35,7 +34,6 @@ type Core struct {
35
34
links links
36
proto protoHandler
37
log Logger
38
- addPeerTimer *time.Timer
39
config struct {
40
tls *tls.Config // immutable after startup
41
//_peers map[Peer]*linkInfo // configurable after startup
@@ -160,10 +158,6 @@ func (c *Core) _close() error {
160
158
c.cancel()
161
159
c.links.shutdown()
162
err := c.PacketConn.Close()
163
- if c.addPeerTimer != nil {
164
- c.addPeerTimer.Stop()
165
- c.addPeerTimer = nil
166
- }
167
return err
168
}
169
0 commit comments