web/lib/javascripts/session.js in vines-0.3.1 vs web/lib/javascripts/session.js in vines-0.3.2
- old
+ new
@@ -12,10 +12,11 @@
};
}
Session.prototype.connect = function(jid, password, callback) {
return this.xmpp.connect(jid, password, __bind(function(status) {
switch (status) {
- case Strophe.Status.AUTHFAIL || Strophe.Status.CONNFAIL:
+ case Strophe.Status.AUTHFAIL:
+ case Strophe.Status.CONNFAIL:
return callback(false);
case Strophe.Status.CONNECTED:
this.xmpp.addHandler((__bind(function(el) {
return this.handleIq(el);
}, this)), null, 'iq');
\ No newline at end of file