Thread interruption

This commit is contained in:
SimoneN64
2024-09-04 22:32:09 +02:00
parent e3a0f3fde4
commit 0d64601103
2 changed files with 7 additions and 4 deletions

View File

@@ -60,9 +60,9 @@ void KaizenQt::LoadROM(const QString &fileName) noexcept {
void KaizenQt::Quit() noexcept {
if (emuThread) {
emuThread->SetRender(false);
emuThread->Stop();
emuThread->quit();
emuThread->requestInterruption();
while (emuThread->isRunning())
;
}
QApplication::quit();
}