summaryrefslogtreecommitdiffstats
path: root/inc/taskmanagercallback.inc.php
diff options
context:
space:
mode:
authorSimon Rettberg2023-12-19 17:57:04 +0100
committerSimon Rettberg2023-12-19 17:57:04 +0100
commitb0ac8fa1207d441076ecb60815d8f20a82925fdb (patch)
tree5962edee0ab315085414b0ce9064722878b8849f /inc/taskmanagercallback.inc.php
parent[systemstatus] Add notice about security updates to main page (diff)
downloadslx-admin-b0ac8fa1207d441076ecb60815d8f20a82925fdb.tar.gz
slx-admin-b0ac8fa1207d441076ecb60815d8f20a82925fdb.tar.xz
slx-admin-b0ac8fa1207d441076ecb60815d8f20a82925fdb.zip
[inc/TMCallback] Release task when finished
Diffstat (limited to 'inc/taskmanagercallback.inc.php')
-rw-r--r--inc/taskmanagercallback.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/taskmanagercallback.inc.php b/inc/taskmanagercallback.inc.php
index fd3cc182..c6b447c9 100644
--- a/inc/taskmanagercallback.inc.php
+++ b/inc/taskmanagercallback.inc.php
@@ -84,6 +84,7 @@ class TaskmanagerCallback
}
}
if (Taskmanager::isFinished($status)) {
+ Taskmanager::release($status);
$func = array('TaskmanagerCallback', preg_replace('/\W/', '', $callback['cbfunction']));
if (!call_user_func_array('method_exists', $func)) {
Eventlog::warning("handleCallback: Callback {$callback['cbfunction']} doesn't exist.");