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
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue