replaced ! in thingRemoved test to reset m_pluginTimer

master
Bruce Eckstein 2021-11-05 17:10:40 -04:00
parent 02e808de2d
commit 82c9151625
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ void IntegrationPluginGaradget::thingRemoved(Thing *thing)
{
qCDebug(dcGaradget) << thing << "Removed";
m_mqttClients.take(thing)->deleteLater();
if (m_pluginTimer && !myThings().isEmpty()) {
if (m_pluginTimer && myThings().isEmpty()) {
hardwareManager()->pluginTimerManager()->unregisterTimer(m_pluginTimer);
m_pluginTimer = nullptr;
}