From 4099a364685d70a1dec1896996c94de42f0f67bc Mon Sep 17 00:00:00 2001 From: Nick Khyl Date: Fri, 2 Aug 2024 19:24:22 -0500 Subject: [PATCH] util/winutil/gp: fix a busy loop bug Updates #12687 Signed-off-by: Nick Khyl --- util/winutil/gp/policylock_windows.go | 1 + 1 file changed, 1 insertion(+) diff --git a/util/winutil/gp/policylock_windows.go b/util/winutil/gp/policylock_windows.go index f92c534bb..95453aa16 100644 --- a/util/winutil/gp/policylock_windows.go +++ b/util/winutil/gp/policylock_windows.go @@ -189,6 +189,7 @@ func (l *PolicyLock) lockSlow() (err error) { select { case resultCh <- policyLockResult{handle, err}: // lockSlow has received the result. + break send_result default: select { case <-closing: