update code which produce error which last fix (._.);

This commit is contained in:
einhornimmond 2021-04-15 12:12:32 +02:00
parent 09f583fc24
commit 9f2c0004c4

View File

@ -192,7 +192,8 @@ void PendingTasksManager::checkForFinishedTasks(Poco::Timer& timer)
auto json = transaction->getModel()->getResultJson();
bool removeIt = false;
if (!json.isNull()) {
if (json->get("state").toString() == "success") {
auto state = json->get("state");
if (!state.isEmpty() && json->get("state").toString() == "success") {
removeIt = true;
}
}