diff options
author | Andrew Dolgov <[email protected]> | 2013-04-17 22:09:11 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-17 22:09:11 +0400 |
commit | 8a386529a18046a53e68c931053b8eee4f4a2e0b (patch) | |
tree | e43651f1da37af96e9d131b79afb53e0c0754160 /update.php | |
parent | fa8e7ea2613e611a9c532bb923727de352a53b2a (diff) |
update: only wait when pidlock is enabled
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update.php b/update.php index e13abafca..be7314175 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); |