mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 22:25:07 +03:00
modify TcpListener
This commit is contained in:
parent
93e81867fd
commit
eeb34ce4e4
2 changed files with 11 additions and 6 deletions
|
@ -152,7 +152,7 @@ func (m *Multicast) announce() {
|
|||
for name, listener := range m.listeners {
|
||||
// Prepare our stop function!
|
||||
stop := func() {
|
||||
listener.Stop <- true
|
||||
listener.Stop()
|
||||
delete(m.listeners, name)
|
||||
m.log.Debugln("No longer multicasting on", name)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue