From 2bff8e302af5d26a7decd78d6e4ab6a181e232e3 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Jun 2017 16:56:21 +0000 Subject: [PATCH] Removing the lock after the process was removed is better --- include/poller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/poller.php b/include/poller.php index 1de9126d2d..2cf1a15f6b 100644 --- a/include/poller.php +++ b/include/poller.php @@ -752,11 +752,11 @@ function poller_run_cron() { if (array_search(__file__,get_included_files())===0){ poller_run($_SERVER["argv"],$_SERVER["argc"]); - Lock::remove('poller_worker'); - poller_unclaim_process(); get_app()->end_process(); + Lock::remove('poller_worker'); + killme(); } -- 2.39.5