ソースを参照

Bugfix: keepalive and autologin aren't mutually exclusive.

fixes #439
JC Brand 10 年 前
コミット
1766aa75f2
2 ファイル変更7 行追加1 行削除
  1. 2 1
      converse.js
  2. 5 0
      docs/CHANGES.rst

+ 2 - 1
converse.js

@@ -5788,7 +5788,8 @@
                 } catch (e) {
                 } catch (e) {
                     converse.log("Could not restore sessions. Error message: "+e.message);
                     converse.log("Could not restore sessions. Error message: "+e.message);
                 }
                 }
-            } else if (this.auto_login) {
+            }
+            if (this.auto_login) {
                 if (!this.jid) {
                 if (!this.jid) {
                     throw new Error("initConnection: If you use auto_login, you also need to provide a jid value");
                     throw new Error("initConnection: If you use auto_login, you also need to provide a jid value");
                 }
                 }

+ 5 - 0
docs/CHANGES.rst

@@ -1,6 +1,11 @@
 Changelog
 Changelog
 =========
 =========
 
 
+0.9.5 (Unreleased)
+------------------
+
+* #439 auto_login and keepalive not working [jcbrand]
+
 0.9.4 (2015-07-04)
 0.9.4 (2015-07-04)
 ------------------
 ------------------