From e1cc7262de44a1323048a7e5f03335bdf0120c5e Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 27 Feb 2019 07:04:21 +0000 Subject: [PATCH] Respawing when quitting --- src/Core/Worker.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Core/Worker.php b/src/Core/Worker.php index 7e40a26c4..362d41811 100644 --- a/src/Core/Worker.php +++ b/src/Core/Worker.php @@ -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; }