From 2026305791b1c690646b72799ff8c2f6c5aa44fd Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 11 Feb 2014 23:48:38 +0200 Subject: [PATCH] Remove code for re-attaching a prebinded session. I couldn't get it to work. Suspect that a new session needs to be created/authenticated instead of attaching to the existing connection. --- converse.js | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/converse.js b/converse.js index 07db8fa2e..b9e1b0eb7 100644 --- a/converse.js +++ b/converse.js @@ -319,16 +319,8 @@ this.reconnect = function () { converse.giveFeedback(__('Reconnecting'), 'error'); - if (converse.prebind) { - this.connection.attach( - this.jid, - this.sid, - this.rid, - function (status, condition) { - converse.onConnect(status, condition, true); - } - ); - } else { + // XXX: Couldn't get the prebind case to work here. + if (!converse.prebind) { this.connection.connect( this.connection.jid, this.connection.pass,