Ensure thread is stopped before deleting QThread

PR #18037.
This commit is contained in:
Vladimir Golovnev
2022-12-08 08:37:14 +03:00
committed by GitHub
parent 31c7306bd2
commit ac3ad17a9e
18 changed files with 134 additions and 76 deletions

View File

@@ -38,6 +38,7 @@
#include "base/exceptions.h"
#include "base/settingvalue.h"
#include "base/utils/thread.h"
class QThread;
class QTimer;
@@ -137,7 +138,7 @@ namespace RSS
SettingValue<bool> m_storeDownloadRepacks;
QTimer *m_processingTimer = nullptr;
QThread *m_ioThread = nullptr;
Utils::Thread::UniquePtr m_ioThread;
AsyncFileStorage *m_fileStorage = nullptr;
QHash<QString, AutoDownloadRule> m_rules;
QList<QSharedPointer<ProcessingJob>> m_processingQueue;