destruct LogThread correctly
This commit is contained in:
parent
9e522eddf8
commit
ea061ae239
@ -13,6 +13,13 @@ LogThread::LogThread(QObject *parent)
|
||||
|
||||
}
|
||||
|
||||
LogThread::~LogThread()
|
||||
{
|
||||
quit();
|
||||
requestInterruption();
|
||||
wait();
|
||||
}
|
||||
|
||||
void LogThread::run()
|
||||
{
|
||||
auto filePath = Logger::logFile();
|
||||
|
@ -16,6 +16,7 @@ class LogThread : public QThread
|
||||
|
||||
public:
|
||||
explicit LogThread(QObject *parent = nullptr);
|
||||
~LogThread() override;
|
||||
|
||||
signals:
|
||||
void onLogChunk(const QString &logChunk);
|
||||
|
Loading…
Reference in New Issue
Block a user