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

Simplify killingCompleted check

parent d414d969
......@@ -517,11 +517,7 @@ void KSMServer::completeKilling()
qCDebug(KSMSERVER) << "KSMServer::completeKilling clients.count()=" <<
clients.count() << endl;
if( state == Killing ) {
bool wait = false;
foreach( KSMClient* c, clients ) {
wait = true; // still waiting for clients to go away
}
if( wait )
if (!clients.isEmpty()) // still waiting for clients to go away
return;
killingCompleted();
}
......
Markdown is supported
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