Commit 57374fe5 authored by David Redondo's avatar David Redondo 🏎
Browse files

Stop the daemon if we have no client

BUG:427204
parent ad51074f
...@@ -228,6 +228,9 @@ SensorProperty *KSysGuardDaemon::findSensor(const QString &path) const ...@@ -228,6 +228,9 @@ SensorProperty *KSysGuardDaemon::findSensor(const QString &path) const
void KSysGuardDaemon::onServiceDisconnected(const QString &service) void KSysGuardDaemon::onServiceDisconnected(const QString &service)
{ {
delete m_clients.take(service); delete m_clients.take(service);
if (m_clients.isEmpty()) {
QCoreApplication::quit();
};
} }
void KSysGuardDaemon::sendFrame() void KSysGuardDaemon::sendFrame()
......
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