From ca6924c467b0ac92b058964eb8da31e6690667fa Mon Sep 17 00:00:00 2001 From: Nova Date: Thu, 24 Jul 2025 13:18:17 +0330 Subject: [PATCH] always stop the profile on exit --- src/ui/mainwindow.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ui/mainwindow.cpp b/src/ui/mainwindow.cpp index 10e7ea7..11f28a4 100644 --- a/src/ui/mainwindow.cpp +++ b/src/ui/mainwindow.cpp @@ -841,11 +841,8 @@ void MainWindow::prepare_exit() on_commitDataRequest(); // Configs::dataStore->save_control_no_save = true; // don't change datastore after this line - if (Configs::dataStore->spmode_vpn) - { - profile_stop(false, true); - sem_stopped.acquire(); - } + profile_stop(false, true); + sem_stopped.acquire(); API::defaultClient->Exit(); mu_exit.unlock(); qDebug() << "prepare exit done!";