]> git.mxchange.org Git - friendica.git/blobdiff - include/cron.php
Merge remote-tracking branch 'upstream/develop' into issue-2864
[friendica.git] / include / cron.php
index 3702bf8b36707dfae5f3d1113602c0318d2634b2..70b87e969618cac8dbbbc9b87a727e8e657e81cc 100644 (file)
@@ -246,10 +246,11 @@ function cron_poll_contacts($argc, $argv) {
                        logger("Polling " . $contact["network"] . " " . $contact["id"] . " " . $contact["nick"] . " " . $contact["name"]);
 
                        if (($contact['network'] == NETWORK_FEED) AND ($contact['priority'] <= 3)) {
-                               proc_run(PRIORITY_MEDIUM, 'include/onepoll.php', intval($contact['id']));
+                               $priority = PRIORITY_MEDIUM;
                        } else {
-                               proc_run(PRIORITY_LOW, 'include/onepoll.php', intval($contact['id']));
+                               $priority = PRIORITY_LOW;
                        }
+                       proc_run(array('priority' => $priority, 'dont_fork' => true), 'include/onepoll.php', intval($contact['id']));
                }
        }
 }