mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-09-14 18:25:08 +03:00
Merge d67900af3b
into 89a3718d59
This commit is contained in:
commit
01acd6a7d2
1 changed files with 0 additions and 5 deletions
|
@ -35,7 +35,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 +159,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
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue