From 512ea502c1310375639b30a9656f39bf62391b56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20St=C3=BCrz?= Date: Tue, 26 Mar 2024 08:23:21 +0100 Subject: [PATCH] Stop nymea time manager before shutdown the daemon --- libnymea-core/nymeacore.cpp | 2 ++ libnymea-core/time/timemanager.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libnymea-core/nymeacore.cpp b/libnymea-core/nymeacore.cpp index d68962e7..4b1f5c1b 100644 --- a/libnymea-core/nymeacore.cpp +++ b/libnymea-core/nymeacore.cpp @@ -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); diff --git a/libnymea-core/time/timemanager.cpp b/libnymea-core/time/timemanager.cpp index fe983164..eddc9cc8 100644 --- a/libnymea-core/time/timemanager.cpp +++ b/libnymea-core/time/timemanager.cpp @@ -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() {