mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-29 06:35:07 +03:00
possibly reduce multicast cpu usage even more
This commit is contained in:
parent
127b7e311c
commit
02e1cb180d
5 changed files with 32 additions and 21 deletions
|
@ -31,7 +31,7 @@ import (
|
|||
|
||||
var awdlGoroutineStarted bool
|
||||
|
||||
func (m *Multicast) multicastStarted() {
|
||||
func (m *Multicast) _multicastStarted() {
|
||||
C.StopAWDLBrowsing()
|
||||
for intf := range m.Interfaces() {
|
||||
if intf == "awdl0" {
|
||||
|
@ -40,7 +40,7 @@ func (m *Multicast) multicastStarted() {
|
|||
}
|
||||
}
|
||||
m.platformhandler = time.AfterFunc(time.Minute, func() {
|
||||
m.Act(m, m.multicastStarted)
|
||||
m.Act(m, m._multicastStarted)
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue