From 539ac32136725799b01ca5cd98f6656ee073a883 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Tue, 24 Nov 2015 11:53:18 -0800 Subject: [PATCH] Revert "Fixed using wrong local variable #4723" This reverts commit d7063a87c871cd97d7e026bcf7c9cf3b895e9f55. --- src/lib/platform/MSWindowsWatchdog.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lib/platform/MSWindowsWatchdog.cpp b/src/lib/platform/MSWindowsWatchdog.cpp index 837db1de..c57fb278 100644 --- a/src/lib/platform/MSWindowsWatchdog.cpp +++ b/src/lib/platform/MSWindowsWatchdog.cpp @@ -552,12 +552,11 @@ MSWindowsWatchdog::getActiveDesktop(LPSECURITY_ATTRIBUTES security) ARCH->lockMutex(m_mutex); int waitTime = 0; while (!m_ready) { - if (waitTime >= MAXIMUM_WAIT_TIME) { break; } ARCH->waitCondVar(m_condVar, m_mutex, 1.0); - waitTime++; + i++; } m_ready = false; ARCH->unlockMutex(m_mutex);