Merge pull request #4063 from annando/daemon-works

Spawn now spawns
This commit is contained in:
Hypolite Petovan 2017-12-14 12:15:05 -05:00 committed by GitHub
commit ab80e6d92a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ $a->set_baseurl(Config::get('system', 'url'));
load_hooks();
$spawn = (($_SERVER["argc"] <= 1) || ($_SERVER["argv"][1] == "spawn"));
$spawn = (($_SERVER["argc"] == 2) && ($_SERVER["argv"][1] == "spawn"));
if ($spawn) {
Worker::spawnWorker();