daemon2: only perform houskeeping on task 0

This commit is contained in:
Andrew Dolgov 2013-05-20 14:39:14 +04:00
parent 9e40bd3c33
commit 830f6f08b4
1 changed files with 3 additions and 1 deletions

View File

@ -175,6 +175,8 @@
} }
update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT); update_daemon_common(isset($options["pidlock"]) ? 50 : DAEMON_FEED_LIMIT);
if (!isset($options["pidlock"]) || $options["task"] == 0)
housekeeping_common(true); housekeeping_common(true);
PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op); PluginHost::getInstance()->run_hooks(PluginHost::HOOK_UPDATE_TASK, "hook_update_task", $op);