X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fdaemon.php;h=490a92ab84bb160449268e64cfff792ae2b61a84;hb=14ec87e68c5a2442c02fced100ac23ebb6000bdd;hp=78eb74001d1726ae7bc5f56ef6b84d772f060772;hpb=516018861e011865a902587876d484d6f0f42a66;p=friendica.git diff --git a/bin/daemon.php b/bin/daemon.php index 78eb74001d..490a92ab84 100755 --- a/bin/daemon.php +++ b/bin/daemon.php @@ -23,8 +23,6 @@ * This script was taken from http://php.net/manual/en/function.pcntl-fork.php */ -use Friendica\Network\HTTPException\ForbiddenException; - if (php_sapi_name() !== 'cli') { header($_SERVER["SERVER_PROTOCOL"] . ' 403 Forbidden'); exit(); @@ -198,7 +196,7 @@ while (true) { $do_cron = true; } - if ($do_cron || (!DI::process()->isMaxLoadReached() && Worker::entriesExists() && Worker::isReady())) { + if ($do_cron || (!DI::system()->isMaxLoadReached() && Worker::entriesExists() && Worker::isReady())) { Worker::spawnWorker($do_cron); } else { Logger::info('Cool down for 5 seconds', ['pid' => $pid]);