From cae60c084301d8d45d4bd873002bb2778a9ae449 Mon Sep 17 00:00:00 2001 From: Jon Atkins Date: Tue, 27 Aug 2013 05:53:59 +0100 Subject: [PATCH] bugfix in error retry counting --- code/map_data_request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/map_data_request.js b/code/map_data_request.js index 5c4afa92..0058c3c0 100644 --- a/code/map_data_request.js +++ b/code/map_data_request.js @@ -225,7 +225,7 @@ window.MapDataRequest.prototype.requeueTile = function(id, error) { // first, see if the error can be ignored due to retry counts if (error) { this.tileErrorCount[id] = (this.tileErrorCount[id]||0)+1; - if (tileErrorCount < this.MAX_TILE_RETRIES) { + if (this.tileErrorCount[id] < this.MAX_TILE_RETRIES) { // retry limit low enough - clear the error flag error = false; }