From 7779d86c5b6ff1ccc531552ac5d0108f98aa5d66 Mon Sep 17 00:00:00 2001 From: Arceliar Date: Sat, 9 May 2020 05:56:36 -0500 Subject: [PATCH] maybe fix multicast deadlock on darwin --- src/multicast/multicast_darwin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/multicast/multicast_darwin.go b/src/multicast/multicast_darwin.go index e020106b..91cb5aee 100644 --- a/src/multicast/multicast_darwin.go +++ b/src/multicast/multicast_darwin.go @@ -33,14 +33,14 @@ var awdlGoroutineStarted bool func (m *Multicast) _multicastStarted() { C.StopAWDLBrowsing() - for intf := range m.Interfaces() { + for intf := range m._interfaces { if intf == "awdl0" { C.StartAWDLBrowsing() break } } m.platformhandler = time.AfterFunc(time.Minute, func() { - m.Act(m, m._multicastStarted) + m.Act(nil, m._multicastStarted) }) }