X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcron.php;h=70b87e969618cac8dbbbc9b87a727e8e657e81cc;hb=34815de99c548b61c94b6e6939edd485eca728d6;hp=3702bf8b36707dfae5f3d1113602c0318d2634b2;hpb=d649873f804f9ed77e69ef6cd12af4a263233945;p=friendica.git diff --git a/include/cron.php b/include/cron.php index 3702bf8b36..70b87e9696 100644 --- a/include/cron.php +++ b/include/cron.php @@ -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'])); } } }