From 479582a9e2c5705a5d21b547181941981428b1b3 Mon Sep 17 00:00:00 2001 From: Siegfried Siegert Date: Tue, 10 Oct 2023 08:15:35 +0200 Subject: [PATCH] Start background task "ACCOUNT" only if CashBox is removed --- src/ATBAPP/ATBDeviceControllerPlugin.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ATBAPP/ATBDeviceControllerPlugin.cpp b/src/ATBAPP/ATBDeviceControllerPlugin.cpp index 2c8f9bb..014cece 100644 --- a/src/ATBAPP/ATBDeviceControllerPlugin.cpp +++ b/src/ATBAPP/ATBDeviceControllerPlugin.cpp @@ -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())); }