diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 71fd9fe62..899a6e29d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -1964,7 +1964,7 @@ void Session::getPendingAlerts(QVector &out, ulong time) QMutexLocker lock(&m_alertsMutex); - while (m_alerts.empty()) + if (m_alerts.empty()) m_alertsWaitCondition.wait(&m_alertsMutex, time); m_alerts.swap(out);