mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2026-05-24 23:06:29 +03:00
possibly reduce multicast cpu usage even more
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user