Sfoglia il codice sorgente

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.
JC Brand 11 anni fa
parent
commit
2026305791
1 ha cambiato i file con 2 aggiunte e 10 eliminazioni
  1. 2 10
      converse.js

+ 2 - 10
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,