mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Fix possible deadlock during application exit.
This commit is contained in:
@@ -1964,7 +1964,7 @@ void Session::getPendingAlerts(QVector<libt::alert *> &out, ulong time)
|
|||||||
|
|
||||||
QMutexLocker lock(&m_alertsMutex);
|
QMutexLocker lock(&m_alertsMutex);
|
||||||
|
|
||||||
while (m_alerts.empty())
|
if (m_alerts.empty())
|
||||||
m_alertsWaitCondition.wait(&m_alertsMutex, time);
|
m_alertsWaitCondition.wait(&m_alertsMutex, time);
|
||||||
|
|
||||||
m_alerts.swap(out);
|
m_alerts.swap(out);
|
||||||
|
|||||||
Reference in New Issue
Block a user