From ba131f7ffb0267043fad4bbc50f5bbdf686ecf26 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 30 Mar 2013 22:36:28 -0700 Subject: [PATCH] Oops, fix potential shutdown hang. --- Core/Core.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Core/Core.cpp b/Core/Core.cpp index fd58612af2..ceaaa1ece9 100644 --- a/Core/Core.cpp +++ b/Core/Core.cpp @@ -83,8 +83,7 @@ void Core_WaitInactive() void Core_WaitInactive(int milliseconds) { - while (!Core_IsInactive()) - m_hInactiveEvent.wait_for(m_hInactiveMutex, milliseconds); + m_hInactiveEvent.wait_for(m_hInactiveMutex, milliseconds); } void UpdateScreenScale() {