modify TcpListener

This commit is contained in:
Arceliar 2019-09-19 19:45:17 -05:00
parent 93e81867fd
commit eeb34ce4e4
2 changed files with 11 additions and 6 deletions

View file

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