fix: Tasks being interrupted even if they already finished

This commit is contained in:
WerWolv
2022-09-14 13:51:48 +02:00
parent 75047e26e2
commit 42f5c0f484

View File

@@ -48,7 +48,9 @@ namespace hex {
}
Task::~Task() {
this->interrupt();
if (!this->isFinished())
this->interrupt();
this->m_thread.join();
}