Fix nasty retry bug that causes us to not reconnect.

This commit is contained in:
Ian Gulliver
2014-05-30 11:23:32 -07:00
parent 5d39c9abdf
commit 8982e0e2b5

View File

@@ -777,7 +777,7 @@ Cosmopolite.prototype.sendRPCs_ = function(commands, opt_delay) {
}
}.bind(this));
xhr.addEventListener('error', retryAfterDelay);
xhr.addEventListener('error', retryAfterDelay.bind(null, commands));
xhr.open('POST', this.urlPrefix_ + '/api');
xhr.send(JSON.stringify(request));
};