From 8982e0e2b58cf232f639430f7ea2e597795206ec Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Fri, 30 May 2014 11:23:32 -0700 Subject: [PATCH] Fix nasty retry bug that causes us to not reconnect. --- static/cosmopolite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/cosmopolite.js b/static/cosmopolite.js index c8b026d..47aa11c 100644 --- a/static/cosmopolite.js +++ b/static/cosmopolite.js @@ -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)); };