mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-24 06:46:29 +03:00
Multicast actor to prevent races
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user