mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
Listener should clean up a bit more when closing
This commit is contained in:
parent
aac88adbed
commit
7e726b0afb
2 changed files with 5 additions and 0 deletions
|
@ -262,6 +262,7 @@ func (c *Core) ListenConn() (*Listener, error) {
|
|||
return nil, errors.New("a listener already exists")
|
||||
}
|
||||
c.sessions.listener = &Listener{
|
||||
core: c,
|
||||
conn: make(chan *Conn),
|
||||
close: make(chan interface{}),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue