Multicast actor to prevent races

This commit is contained in:
Neil Alexander 2019-09-18 16:51:46 +01:00
parent b959f53fee
commit 2dc136f94a
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
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 {