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!";