Stop nymea time manager before shutdown the daemon

This commit is contained in:
Simon Stürz 2024-03-26 08:23:21 +01:00
parent cb9607498e
commit 512ea502c1
2 changed files with 3 additions and 1 deletions

View File

@ -174,7 +174,9 @@ NymeaCore::~NymeaCore()
});
// Disconnect all signals/slots, we're going down now
m_timeManager->stopTimer();
m_timeManager->disconnect(this);
m_thingManager->disconnect(this);
m_ruleEngine->disconnect(this);

View File

@ -64,7 +64,7 @@ QDateTime TimeManager::currentDateTime() const
/*! Stop the time.
*
* \note This method should only be used in tests.
* \note This method should only be used in tests and when shutting down the system.
*/
void TimeManager::stopTimer()
{