X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fcron.php;h=70b87e969618cac8dbbbc9b87a727e8e657e81cc;hb=71a5de40f105234aa8082844d7839c3e0e49e905;hp=3702bf8b36707dfae5f3d1113602c0318d2634b2;hpb=02f9bfa54acb4e1117832b49ba6c19745ebde776;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'])); } } }