]> git.mxchange.org Git - friendica.git/commitdiff
Removing the lock after the process was removed is better
authorMichael <heluecht@pirati.ca>
Mon, 5 Jun 2017 16:56:21 +0000 (16:56 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 5 Jun 2017 16:56:21 +0000 (16:56 +0000)
include/poller.php

index 1de9126d2d7b49e08dd8342212130c0874051aeb..2cf1a15f6b38d156c9411caf81b2fdf719e17516 100644 (file)
@@ -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();
 }