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.
This commit is contained in:
parent
dc858cc38b
commit
2026305791
12
converse.js
12
converse.js
|
@ -319,16 +319,8 @@
|
||||||
|
|
||||||
this.reconnect = function () {
|
this.reconnect = function () {
|
||||||
converse.giveFeedback(__('Reconnecting'), 'error');
|
converse.giveFeedback(__('Reconnecting'), 'error');
|
||||||
if (converse.prebind) {
|
// XXX: Couldn't get the prebind case to work here.
|
||||||
this.connection.attach(
|
if (!converse.prebind) {
|
||||||
this.jid,
|
|
||||||
this.sid,
|
|
||||||
this.rid,
|
|
||||||
function (status, condition) {
|
|
||||||
converse.onConnect(status, condition, true);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
this.connection.connect(
|
this.connection.connect(
|
||||||
this.connection.jid,
|
this.connection.jid,
|
||||||
this.connection.pass,
|
this.connection.pass,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user