RomSearcherThread: terminate in deconstructor

This commit is contained in:
Rosalie Wanders committed 2021-01-05 15:59:22 +01:00
1 parent a1368e39d2
commit 7b820fcb42
1 file changed
+6
+6
View File
@@ -21,6 +21,12 @@ RomSearcherThread::RomSearcherThread(QObject *parent) : QThread(parent)
RomSearcherThread::~RomSearcherThread(void)
{
// kill the thread when we're running
if (this->isRunning())
{
this->terminate();
this->wait();
}
}
void RomSearcherThread::SetDirectory(QString directory)