]> git.wh0rd.org - tt-rss.git/commitdiff
update: only wait when pidlock is enabled
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 18:09:11 +0000 (22:09 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 17 Apr 2013 18:09:11 +0000 (22:09 +0400)
update.php

index e13abafca2955d08037f8e1040d0b40bcacd3cbb..be7314175d628df1611c6bd11feba3645b981dc1 100755 (executable)
        $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);