Respect "don't fork"

This commit is contained in:
Michael 2018-06-02 05:17:32 +00:00
parent 3034170088
commit 371f511954

View file

@ -1084,14 +1084,14 @@ class Worker
dba::insert('workerqueue', ['parameter' => $parameters, 'created' => $created, 'priority' => $priority]);
}
// We tell the daemon that a new job entry exists
if (Config::get('system', 'worker_daemon_mode', false)) {
self::IPCSetJobState(true);
// Should we quit and wait for the worker to be called as a cronjob?
if ($dont_fork) {
return true;
}
// Should we quit and wait for the worker to be called as a cronjob?
if ($dont_fork) {
// We tell the daemon that a new job entry exists
if (Config::get('system', 'worker_daemon_mode', false)) {
self::IPCSetJobState(true);
return true;
}