From 95a988f19bbf8f3e177c4e578c8a88a9a391f9e5 Mon Sep 17 00:00:00 2001
From: Akash Mozumdar <akashmozumdar@gmail.com>
Date: Sat, 16 Feb 2019 00:23:13 -0500
Subject: [PATCH] actually lock mutexe

---
 include/types.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/types.h b/include/types.h
index 2bc51d1..01da72c 100644
--- a/include/types.h
+++ b/include/types.h
@@ -87,7 +87,7 @@ class WinMutex // Like CMutex but works with scoped_lock
 {
 public:
 	WinMutex(std::wstring name) : m(CreateMutexW(nullptr, FALSE, name.c_str())) {}
-	void lock() { if (m) WaitForSingleObject(m, 0); }
+	void lock() { if (m) WaitForSingleObject(m, INFINITE); }
 	void unlock() { if (m) ReleaseMutex(m); }
 
 private: