This commit is contained in:
love-code-yeyixiao 2024-08-26 19:21:24 +08:00
parent 230ebf094b
commit b576bb0e1e
1 changed files with 5 additions and 0 deletions

View File

@ -1321,6 +1321,11 @@ void CSandMan::OnRestartAsAdmin()
void CSandMan::OnExit()
{
m_bExit = true;
if (theConf->GetBool("TerminateWhenExit", false)) {
if (theAPI->IsConnected()) {
theAPI->TerminateAll(!theConf->GetBool("ExceptWhenAutoTerminate", false));
}
}
close();
}