Browse Source

Avoid race condition when waking worker thread

PR #19005.
adaptive-webui-19844
Vladimir Golovnev 2 years ago committed by GitHub
parent
commit
a59301712e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/base/bittorrent/dbresumedatastorage.cpp

2
src/base/bittorrent/dbresumedatastorage.cpp

@ -703,8 +703,8 @@ void BitTorrent::DBResumeDataStorage::Worker::run()
void DBResumeDataStorage::Worker::requestInterruption() void DBResumeDataStorage::Worker::requestInterruption()
{ {
m_waitCondition.wakeAll();
QThread::requestInterruption(); QThread::requestInterruption();
m_waitCondition.wakeAll();
} }
void BitTorrent::DBResumeDataStorage::Worker::store(const TorrentID &id, const LoadTorrentParams &resumeData) void BitTorrent::DBResumeDataStorage::Worker::store(const TorrentID &id, const LoadTorrentParams &resumeData)

Loading…
Cancel
Save