X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fworker.php;h=947656ab7c2eebd4bab04384b906c939544ede6d;hb=ab60641e3ba731aca42ab510bdf9c2411db6aab4;hp=62f9bd3dde232d8611a150101b41a78adccd1e0c;hpb=7a9456d5ac2e73229b2237074c700731c63661a6;p=friendica.git diff --git a/mod/worker.php b/mod/worker.php index 62f9bd3dde..947656ab7c 100644 --- a/mod/worker.php +++ b/mod/worker.php @@ -41,11 +41,15 @@ function worker_init($a){ // But since it doesn't destroy anything, we just try to get more execution time in any way. set_time_limit(0); - poller_execute($r[0]); + if (poller_claim_process($r[0])) { + poller_execute($r[0]); + } } call_worker(); + poller_unclaim_process(); + $a->end_process(); logger("Front end worker ended: ".getmypid());