Multicast actor to prevent races

This commit is contained in:
Neil Alexander
2019-09-18 16:51:46 +01:00
parent b959f53fee
commit 2dc136f94a
2 changed files with 10 additions and 4 deletions

View File

@@ -39,7 +39,9 @@ func (m *Multicast) multicastStarted() {
break
}
}
m.platformhandler = time.AfterFunc(time.Minute, m.multicastStarted)
m.platformhandler = time.AfterFunc(time.Minute, func() {
m.Act(m, m.multicastStarted)
})
}
func (m *Multicast) multicastReuse(network string, address string, c syscall.RawConn) error {