From 8a386529a18046a53e68c931053b8eee4f4a2e0b Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 22:09:11 +0400 Subject: [PATCH] update: only wait when pidlock is enabled --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5