This commit is contained in:
Eelco Dolstra 2009-03-24 14:07:37 +00:00
parent 7aedcf9460
commit 12c8c64efa
1 changed files with 1 additions and 1 deletions

View File

@ -2640,7 +2640,7 @@ void Worker::waitForInput()
if (!waitingForAWhile.empty()) {
useTimeout = true;
if (lastWokenUp == 0 && children.empty())
if (lastWokenUp == 0)
printMsg(lvlError, "waiting for locks...");
if (lastWokenUp == 0 || lastWokenUp > before) lastWokenUp = before;
timeout.tv_sec = std::max((time_t) 0, lastWokenUp + wakeUpInterval - before);