From: Andrew Dolgov Date: Wed, 17 Apr 2013 18:09:11 +0000 (+0400) Subject: update: only wait when pidlock is enabled X-Git-Tag: 1.7.9~25^2~154^2~1 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8a386529a18046a53e68c931053b8eee4f4a2e0b;p=tt-rss.git update: only wait when pidlock is enabled --- diff --git a/update.php b/update.php index e13abafc..be731417 100755 --- a/update.php +++ b/update.php @@ -128,7 +128,7 @@ $lock_handle = make_lockfile($lock_filename); $must_exit = false; - if (isset($options["task"])) { + if (isset($options["task"]) && isset($options["pidlock"])) { $waits = $options["task"] * 5; _debug("Waiting before update ($waits)"); sleep($waits);