diff --git a/core/AmThread.cpp b/core/AmThread.cpp index d56d9a8f..67b1f1d9 100644 --- a/core/AmThread.cpp +++ b/core/AmThread.cpp @@ -191,7 +191,9 @@ void AmThreadWatcher::run() } else { DBG("thread %lu still running.\n", cur_thread->_pid); + _l.lock(); it++; + _l.unlock(); } _l.lock();