mirror of
https://github.com/Mahdi-zarei/nekoray.git
synced 2025-12-19 05:30:06 +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();
|
||||
//
|
||||
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!";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user