]> git.mxchange.org Git - friendica.git/commitdiff
Respawing when quitting
authorMichael <heluecht@pirati.ca>
Wed, 27 Feb 2019 07:04:21 +0000 (07:04 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 27 Feb 2019 07:04:21 +0000 (07:04 +0000)
src/Core/Worker.php

index 7e40a26c4a9fe4d1c320c144cf9bd910b4705494..362d41811cde1def8cef04fb901f62251a4b8af7 100644 (file)
@@ -126,7 +126,8 @@ class Worker
 
                        // Quit the worker once every cron interval
                        if (time() > ($starttime + Config::get('system', 'cron_interval'))) {
-                               Logger::log('Process lifetime reached, quitting.', Logger::DEBUG);
+                               Logger::log('Process lifetime reached, respawning.', Logger::DEBUG);
+                               self::spawnWorker();
                                return;
                        }