Start background task "ACCOUNT" only if CashBox is removed

This commit is contained in:
Siegfried Siegert 2023-10-10 08:15:35 +02:00
parent e5f6405a19
commit 479582a9e2
Signed by: SiegfriedSiegert
GPG Key ID: 68371E015E8F0B03

View File

@ -362,7 +362,6 @@ void ATBDeviceControllerPlugin::onVaultDoorOpened()
// this is started here because we want to keep ptu awake in order to get
// coin box removed / inserted etc.
// BackgroundTask("ACCOUNT") is finished, if account message is sent to ISMAS!
this->dbus->startBackgroundTask("ACCOUNT");
// do not: emit this->requestModeSERVICE();
}
@ -371,6 +370,9 @@ void ATBDeviceControllerPlugin::onCoinBoxRemoved()
{
qCritical() << "ATBDeviceControllerPlugin::onCoinBoxRemoved()";
// BackgroundTask("ACCOUNT") is finished, if account message is sent to ISMAS!
this->dbus->startBackgroundTask("ACCOUNT");
QTimer::singleShot(4000, this, SLOT(private_startAccount()));
}