mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-23 13:04:23 +00:00
Fix possible deadlock during application exit.
This commit is contained in:
parent
3e0f8a1e4e
commit
91a99c6903
@ -1964,7 +1964,7 @@ void Session::getPendingAlerts(QVector<libt::alert *> &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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user