Listener should clean up a bit more when closing

This commit is contained in:
Neil Alexander 2019-04-19 23:04:09 +01:00
parent aac88adbed
commit 7e726b0afb
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 5 additions and 0 deletions

View file

@ -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{}),
}