mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-25 08:21:36 +00:00
fix darwin compile problem
This commit is contained in:
parent
98816f34b2
commit
7778a47a8f
@ -32,6 +32,9 @@ import (
|
|||||||
var awdlGoroutineStarted bool
|
var awdlGoroutineStarted bool
|
||||||
|
|
||||||
func (m *Multicast) _multicastStarted() {
|
func (m *Multicast) _multicastStarted() {
|
||||||
|
if !m.isOpen {
|
||||||
|
return
|
||||||
|
}
|
||||||
C.StopAWDLBrowsing()
|
C.StopAWDLBrowsing()
|
||||||
for intf := range m._interfaces {
|
for intf := range m._interfaces {
|
||||||
if intf == "awdl0" {
|
if intf == "awdl0" {
|
||||||
@ -39,7 +42,7 @@ func (m *Multicast) _multicastStarted() {
|
|||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
m.platformhandler = time.AfterFunc(time.Minute, func() {
|
time.AfterFunc(time.Minute, func() {
|
||||||
m.Act(nil, m._multicastStarted)
|
m.Act(nil, m._multicastStarted)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user