Fixed using wrong local variable #4723

This commit is contained in:
Jerry (Xinyu Hou) 2015-05-27 10:32:13 -07:00
parent aec52c36e6
commit d7063a87c8
1 changed files with 2 additions and 1 deletions

View File

@ -552,11 +552,12 @@ 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);
i++;
waitTime++;
}
m_ready = false;
ARCH->unlockMutex(m_mutex);