Merge PR #248: Disconnect all slots of nymea:core on shutdown
This commit is contained in:
commit
5cbace14bf
@ -221,12 +221,13 @@ void NymeaCore::init() {
|
|||||||
/*! Destructor of the \l{NymeaCore}. */
|
/*! Destructor of the \l{NymeaCore}. */
|
||||||
NymeaCore::~NymeaCore()
|
NymeaCore::~NymeaCore()
|
||||||
{
|
{
|
||||||
|
qCDebug(dcApplication()) << "Shutting down NymeaCore";
|
||||||
m_logger->logSystemEvent(m_timeManager->currentDateTime(), false);
|
m_logger->logSystemEvent(m_timeManager->currentDateTime(), false);
|
||||||
|
|
||||||
// Disconnect everything that could still spawn events
|
// Disconnect all signals/slots, we're going down now
|
||||||
disconnect(m_deviceManager);
|
m_timeManager->disconnect(this);
|
||||||
disconnect(m_ruleEngine);
|
m_deviceManager->disconnect(this);
|
||||||
disconnect(m_timeManager);
|
m_ruleEngine->disconnect(this);
|
||||||
|
|
||||||
// At very first, cut off the outside world
|
// At very first, cut off the outside world
|
||||||
qCDebug(dcApplication) << "Shutting down \"Server Manager\"";
|
qCDebug(dcApplication) << "Shutting down \"Server Manager\"";
|
||||||
|
|||||||
@ -62,7 +62,7 @@ void NymeaTestBase::initTestCase()
|
|||||||
NymeaSettings nymeadSettings(NymeaSettings::SettingsRoleGlobal);
|
NymeaSettings nymeadSettings(NymeaSettings::SettingsRoleGlobal);
|
||||||
nymeadSettings.clear();
|
nymeadSettings.clear();
|
||||||
|
|
||||||
QLoggingCategory::setFilterRules("*.debug=false\nTests.debug=true\nMockDevice.debug=true");
|
QLoggingCategory::setFilterRules("*.debug=false\nApplication.debug=true\nTests.debug=true\nMockDevice.debug=true");
|
||||||
|
|
||||||
// Start the server
|
// Start the server
|
||||||
qCDebug(dcTests()) << "Setting up nymea core instance";
|
qCDebug(dcTests()) << "Setting up nymea core instance";
|
||||||
|
|||||||
Reference in New Issue
Block a user