Selaa lähdekoodia

update: only wait when pidlock is enabled

Andrew Dolgov 11 vuotta sitten
vanhempi
commit
8a386529a1
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      update.php

+ 1 - 1
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);