util/winutil/gp: fix a busy loop bug

Updates #12687

Signed-off-by: Nick Khyl <nickk@tailscale.com>
This commit is contained in:
Nick Khyl 2024-08-02 19:24:22 -05:00 committed by Nick Khyl
parent d9d9d525d9
commit 4099a36468

View File

@ -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: