浏览代码

GeocodeLib: removed `$raise` from pause

having increased the delay to 2sec, this didn't really do much for us anymore.
alan bount 11 年之前
父节点
当前提交
6cbfce5722
共有 1 个文件被更改,包括 3 次插入7 次删除
  1. 3 7
      Lib/GeocodeLib.php

+ 3 - 7
Lib/GeocodeLib.php

@@ -220,13 +220,9 @@ class GeocodeLib {
 
 	/**
 	 * Trying to avoid "TOO_MANY_QUERIES" error
-	 * @param bool $raise If the pause length should be raised
 	 */
-	public function pause($raise = false) {
+	public function pause() {
 		usleep($this->options['pause']);
-		if ($raise) {
-			$this->options['pause'] += 10000;
-		}
 	}
 
 	/**
@@ -313,7 +309,7 @@ class GeocodeLib {
 				$this->reachedQueryLimit = true;
 				return false;
 			}
-			$this->pause(true);
+			$this->pause();
 		}
 
 		return true;
@@ -393,7 +389,7 @@ class GeocodeLib {
 				$this->reachedQueryLimit = true;
 				return false;
 			}
-			$this->pause(true);
+			$this->pause();
 		}
 
 		return true;