Commit c5fd9772 authored by Alexander Lohnau's avatar Alexander Lohnau 💬
Browse files

Simplify killingCompleted check

parent d414d969
...@@ -517,11 +517,7 @@ void KSMServer::completeKilling() ...@@ -517,11 +517,7 @@ void KSMServer::completeKilling()
qCDebug(KSMSERVER) << "KSMServer::completeKilling clients.count()=" << qCDebug(KSMSERVER) << "KSMServer::completeKilling clients.count()=" <<
clients.count() << endl; clients.count() << endl;
if( state == Killing ) { if( state == Killing ) {
bool wait = false; if (!clients.isEmpty()) // still waiting for clients to go away
foreach( KSMClient* c, clients ) {
wait = true; // still waiting for clients to go away
}
if( wait )
return; return;
killingCompleted(); killingCompleted();
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment