From f31f41348ac1831b4b46864908cd68d2cb42bcce Mon Sep 17 00:00:00 2001 From: "leo.steiner" Date: Thu, 21 Nov 2019 08:55:35 +0800 Subject: [PATCH] Reverted deadlock fix (Affected other receivers) --- systray_windows.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/systray_windows.go b/systray_windows.go index 901c8ef..8e8b17a 100644 --- a/systray_windows.go +++ b/systray_windows.go @@ -125,13 +125,6 @@ func addOrUpdateMenuItem(item *MenuItem) { item.id = nextActionId action = walk.NewAction() action.Triggered().Attach(func() { - // Ensure there is at least one receiver to prevent deadlock - go func() { - select { - case <-item.ClickedCh: - } - }() - item.ClickedCh <- struct{}{} }) if err := notifyIcon.ContextMenu().Actions().Add(action); err != nil {