瀏覽代碼

Bugfix. Return after attaching with prebind data.

JC Brand 10 年之前
父節點
當前提交
b803267555
共有 2 個文件被更改,包括 6 次插入0 次删除
  1. 1 0
      converse.js
  2. 5 0
      docs/CHANGES.rst

+ 1 - 0
converse.js

@@ -4563,6 +4563,7 @@
                         throw('If you set prebind=true, you MUST supply JID, RID and SID values');
                     }
                     this.connection.attach(this.jid, this.sid, this.rid, this.onConnect);
+                    return;
                 }
                 if (this.keepalive) {
                     rid = this.session.get('rid');

+ 5 - 0
docs/CHANGES.rst

@@ -1,6 +1,11 @@
 Changelog
 =========
 
+0.8.4 (Unreleased)
+------------------
+
+* Bugfix. Error when trying to use prebind and keepalive together. [jcbrand]
+
 0.8.3 (2014-09-22)
 ------------------