Removing the lock after the process was removed is better
This commit is contained in:
parent
b86c4d539e
commit
2bff8e302a
1 changed files with 2 additions and 2 deletions
|
@ -752,11 +752,11 @@ function poller_run_cron() {
|
||||||
if (array_search(__file__,get_included_files())===0){
|
if (array_search(__file__,get_included_files())===0){
|
||||||
poller_run($_SERVER["argv"],$_SERVER["argc"]);
|
poller_run($_SERVER["argv"],$_SERVER["argc"]);
|
||||||
|
|
||||||
Lock::remove('poller_worker');
|
|
||||||
|
|
||||||
poller_unclaim_process();
|
poller_unclaim_process();
|
||||||
|
|
||||||
get_app()->end_process();
|
get_app()->end_process();
|
||||||
|
|
||||||
|
Lock::remove('poller_worker');
|
||||||
|
|
||||||
killme();
|
killme();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue