Browse Source

Fix possible deadlock during application exit.

adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
91a99c6903
  1. 2
      src/base/bittorrent/session.cpp

2
src/base/bittorrent/session.cpp

@ -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);

Loading…
Cancel
Save