mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-22 05:46:30 +03:00
committed by
Neil Alexander
parent
962adc2994
commit
33831f606f
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user