mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
send close signal only on restart to avoid problems while destructiong on normal exit (#376)
This commit is contained in:
@@ -447,9 +447,12 @@ Hyperion::Hyperion(const QJsonObject &qjsonConfig, const QString configFile)
|
||||
}
|
||||
|
||||
|
||||
void Hyperion::freeObjects()
|
||||
void Hyperion::freeObjects(bool emitCloseSignal)
|
||||
{
|
||||
emit closing();
|
||||
if (emitCloseSignal)
|
||||
{
|
||||
emit closing();
|
||||
}
|
||||
|
||||
// switch off all leds
|
||||
clearall();
|
||||
@@ -464,7 +467,7 @@ void Hyperion::freeObjects()
|
||||
|
||||
Hyperion::~Hyperion()
|
||||
{
|
||||
freeObjects();
|
||||
freeObjects(false);
|
||||
}
|
||||
|
||||
unsigned Hyperion::getLedCount() const
|
||||
|
Reference in New Issue
Block a user