summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2024-10-11 15:42:00 +0200
committerSimon Rettberg2024-10-11 15:42:00 +0200
commit13634e74f0632bcf805b47113a57ec80ece22ded (patch)
tree602a173520395b50e0dad4f0f764c994b6929db7
parent[systemstatus] Filter more spam from lighttpd log (diff)
downloadslx-admin-13634e74f0632bcf805b47113a57ec80ece22ded.tar.gz
slx-admin-13634e74f0632bcf805b47113a57ec80ece22ded.tar.xz
slx-admin-13634e74f0632bcf805b47113a57ec80ece22ded.zip
[webinterface] API: Check callbacks immediately on success
This makes sure the web interface wont momentarily show outdated information.
-rw-r--r--modules-available/webinterface/api.inc.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules-available/webinterface/api.inc.php b/modules-available/webinterface/api.inc.php
index e368b56d..0b4fabdb 100644
--- a/modules-available/webinterface/api.inc.php
+++ b/modules-available/webinterface/api.inc.php
@@ -36,4 +36,6 @@ if (Taskmanager::isFailed($task)) {
]));
}
-die('{"message":"OK"}'); \ No newline at end of file
+echo '{"message":"OK"}';
+Trigger::checkCallbacks();
+exit; \ No newline at end of file