mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 13:42:51 +08:00
always stop the profile on exit
This commit is contained in:
parent
e9c44e0d07
commit
ca6924c467
@ -841,11 +841,8 @@ void MainWindow::prepare_exit()
|
|||||||
on_commitDataRequest();
|
on_commitDataRequest();
|
||||||
//
|
//
|
||||||
Configs::dataStore->save_control_no_save = true; // don't change datastore after this line
|
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();
|
API::defaultClient->Exit();
|
||||||
mu_exit.unlock();
|
mu_exit.unlock();
|
||||||
qDebug() << "prepare exit done!";
|
qDebug() << "prepare exit done!";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user