mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
Multicast actor to prevent races
This commit is contained in:
parent
b959f53fee
commit
2dc136f94a
2 changed files with 10 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue