mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:15:55 +00:00
update: only wait when pidlock is enabled
This commit is contained in:
@@ -128,7 +128,7 @@
|
|||||||
$lock_handle = make_lockfile($lock_filename);
|
$lock_handle = make_lockfile($lock_filename);
|
||||||
$must_exit = false;
|
$must_exit = false;
|
||||||
|
|
||||||
if (isset($options["task"])) {
|
if (isset($options["task"]) && isset($options["pidlock"])) {
|
||||||
$waits = $options["task"] * 5;
|
$waits = $options["task"] * 5;
|
||||||
_debug("Waiting before update ($waits)");
|
_debug("Waiting before update ($waits)");
|
||||||
sleep($waits);
|
sleep($waits);
|
||||||
|
|||||||
Reference in New Issue
Block a user