destruct LogThread correctly

This commit is contained in:
Bob van der Linden 2022-03-10 20:33:22 +01:00
parent 9e522eddf8
commit ea061ae239
No known key found for this signature in database
GPG Key ID: EEBE8E3EC4A31364
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,13 @@ LogThread::LogThread(QObject *parent)
}
LogThread::~LogThread()
{
quit();
requestInterruption();
wait();
}
void LogThread::run()
{
auto filePath = Logger::logFile();

View File

@ -16,6 +16,7 @@ class LogThread : public QThread
public:
explicit LogThread(QObject *parent = nullptr);
~LogThread() override;
signals:
void onLogChunk(const QString &logChunk);