]> git.mxchange.org Git - friendica.git/commitdiff
Respect "don't fork"
authorMichael <heluecht@pirati.ca>
Sat, 2 Jun 2018 05:17:32 +0000 (05:17 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 2 Jun 2018 05:17:32 +0000 (05:17 +0000)
src/Core/Worker.php

index b75bbdf28a804f86dc338cf442bb10ac5aab065a..5ca815a7aea8a9a85b41e642e2c9d70187c0b35f 100644 (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;
                }