summaryrefslogtreecommitdiffstats
path: root/inc/taskmanagercallback.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-24 16:30:07 +0100
committerSimon Rettberg2015-02-24 16:30:07 +0100
commitbb6432a6158b97cd5b92ab316d9d8b52bca2044d (patch)
treee64f4d92458d2fb501eb0af13c6dc37adc731747 /inc/taskmanagercallback.inc.php
parentMiniLinux download with version selection (diff)
downloadslx-admin-bb6432a6158b97cd5b92ab316d9d8b52bca2044d.tar.gz
slx-admin-bb6432a6158b97cd5b92ab316d9d8b52bca2044d.tar.xz
slx-admin-bb6432a6158b97cd5b92ab316d9d8b52bca2044d.zip
Various fixes
Diffstat (limited to 'inc/taskmanagercallback.inc.php')
-rw-r--r--inc/taskmanagercallback.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/taskmanagercallback.inc.php b/inc/taskmanagercallback.inc.php
index 546fbbc9..ba589469 100644
--- a/inc/taskmanagercallback.inc.php
+++ b/inc/taskmanagercallback.inc.php
@@ -38,7 +38,6 @@ class TaskmanagerCallback
} else {
Database::exec("INSERT INTO callback (taskid, dateline, cbfunction) VALUES (:task, UNIX_TIMESTAMP(), :callback)", $data);
}
- Property::setNeedsCallback(1);
}
/**
@@ -73,8 +72,9 @@ class TaskmanagerCallback
return;
if (Taskmanager::isFailed($status) || Taskmanager::isFinished($status)) {
$del = Database::exec("DELETE FROM callback WHERE taskid = :task AND cbfunction = :cb LIMIT 1", array('task' => $callback['taskid'], 'cb' => $callback['cbfunction']));
- if ($del === 0) // No entry deleted, so someone else must have deleted it - race condition, do nothing
+ if ($del === 0) { // No entry deleted, so someone else must have deleted it - race condition, do nothing
return;
+ }
}
if (Taskmanager::isFinished($status)) {
$func = array('TaskmanagerCallback', preg_replace('/\W/', '', $callback['cbfunction']));