From 0b421209a201f4796f7891fe88663c9baa4d2c3a Mon Sep 17 00:00:00 2001 From: FrozenCow Date: Tue, 29 Mar 2011 01:16:52 +0200 Subject: [PATCH] Small fix for invalid http response of updates. --- web/js/map.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/web/js/map.js b/web/js/map.js index 815b43d1..af09df48 100644 --- a/web/js/map.js +++ b/web/js/map.js @@ -368,6 +368,10 @@ DynMap.prototype = { $(me).trigger('worldupdating'); $.getJSON(me.options.updateUrl + "world/" + me.world.name + "/" + me.lasttimestamp, function(update) { + if (!update) { + setTimeout(function() { me.update(); }, me.options.updaterate); + return; + } me.alertbox.hide(); if (!me.options.jsonfile) {