mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 10:37:06 -07:00
Fix possible deadlock during application exit.
This commit is contained in:
parent
29fc5bc80d
commit
71557fe784
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue