From f3dba4c1948e7225c61e8561abb50d0a876bd737 Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Sun, 1 Sep 2019 21:25:47 -0600 Subject: [PATCH] wintun: consider abandoned mutexes as released --- tun/wintun/namespace_windows.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tun/wintun/namespace_windows.go b/tun/wintun/namespace_windows.go index 21791ef..01fff91 100644 --- a/tun/wintun/namespace_windows.go +++ b/tun/wintun/namespace_windows.go @@ -91,7 +91,7 @@ func (pool Pool) takeNameMutex() (windows.Handle, error) { windows.CloseHandle(mutex) return 0, fmt.Errorf("Error waiting on name mutex: %v", err) } - if event != windows.WAIT_OBJECT_0 { + if event != windows.WAIT_OBJECT_0 && event != windows.WAIT_ABANDONED { windows.CloseHandle(mutex) return 0, errors.New("Error with event trigger of name mutex") }