Fix reset core hanging

This commit is contained in:
Nova 2025-11-29 02:21:54 +03:30
parent 0c25f3ad2e
commit 6af17981a4
2 changed files with 3 additions and 8 deletions

View File

@ -2500,15 +2500,10 @@ void MainWindow::HotkeyEvent(const QString &key) {
}
bool MainWindow::StopVPNProcess() {
QMutex waitStop;
waitStop.lock();
runOnThread([=, this, &waitStop]
runOnThread([=, this]
{
core_process->Kill();
waitStop.unlock();
}, DS_cores);
waitStop.lock();
waitStop.unlock();
}, DS_cores, true);
return true;
}

View File

@ -512,7 +512,7 @@ void MainWindow::profile_start(int _id) {
int r = msg.exec() - 2;
if (r == 0) {
GetMainWindow()->StopVPNProcess();
StopVPNProcess();
}
});
return false;