Fixes a bug in how processHandler checks for lock, a=chris

Chris Pollett [2011-12-06 17:Dec:th]
Fixes a bug in how processHandler checks for lock, a=chris
Filename
lib/crawl_daemon.php
diff --git a/lib/crawl_daemon.php b/lib/crawl_daemon.php
index b4e5faec8..96ee4e527 100644
--- a/lib/crawl_daemon.php
+++ b/lib/crawl_daemon.php
@@ -84,6 +84,7 @@ class CrawlDaemon implements CrawlConstants
         $now = time();
         if($now - self::$time < 30) return;

+        self::$time = $now;
         $lock_file = CRAWL_DIR."/schedules/".self::$name."_lock.txt";
         if(!file_exists($lock_file)) {
             crawlLog("Stopping ".self::$name." ...");
ViewGit