optimize code

This commit is contained in:
arm64v8a
2023-05-25 13:37:52 +09:00
parent ea993d8249
commit d7a8b939f3
5 changed files with 32 additions and 9 deletions

View File

@@ -278,6 +278,7 @@ void MainWindow::neko_start(int _id) {
}
if (!mu_stopping.tryLock()) {
MessageBoxWarning(software_name, "Another profile is stopping...");
mu_starting.unlock();
mu_stopping.unlock();
return;
}