Try and solidify multicast interface behavior

This commit is contained in:
Neil Alexander 2019-06-20 15:11:55 +01:00
parent 2fd3ac6837
commit 54f1804101
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
3 changed files with 76 additions and 73 deletions

View file

@ -35,12 +35,12 @@ func (m *Multicast) multicastStarted() {
if awdlGoroutineStarted {
return
}
m.log.Infoln("Multicast discovery will wake up AWDL if required")
awdlGoroutineStarted = true
for {
C.StopAWDLBrowsing()
for _, intf := range m.interfaces() {
for _, intf := range m.GetInterfaces() {
if intf.Name == "awdl0" {
m.log.Infoln("Multicast discovery is using AWDL discovery")
C.StartAWDLBrowsing()
break
}