update: only wait when pidlock is enabled
This commit is contained in:
parent
fa8e7ea261
commit
8a386529a1
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue