From 1766aa75f2dde85eb27d9534afe24b1dc366e71f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Sat, 11 Jul 2015 13:49:28 +0200 Subject: [PATCH] Bugfix: keepalive and autologin aren't mutually exclusive. fixes #439 --- converse.js | 3 ++- docs/CHANGES.rst | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/converse.js b/converse.js index 095b433cf..994348458 100644 --- a/converse.js +++ b/converse.js @@ -5788,7 +5788,8 @@ } catch (e) { converse.log("Could not restore sessions. Error message: "+e.message); } - } else if (this.auto_login) { + } + if (this.auto_login) { if (!this.jid) { throw new Error("initConnection: If you use auto_login, you also need to provide a jid value"); } diff --git a/docs/CHANGES.rst b/docs/CHANGES.rst index 62767c9c2..3a158e643 100644 --- a/docs/CHANGES.rst +++ b/docs/CHANGES.rst @@ -1,6 +1,11 @@ Changelog ========= +0.9.5 (Unreleased) +------------------ + +* #439 auto_login and keepalive not working [jcbrand] + 0.9.4 (2015-07-04) ------------------