Commit bb54874f authored by JC Brand's avatar JC Brand

Add extra check before accepting a passed in connection.

No use in using a passed in connection that's not connected.
parent aa2c3854
......@@ -4530,7 +4530,7 @@
this.initConnection = function () {
var rid, sid, jid;
if (this.connection) {
if (this.connection && this.connection.connected) {
this.onConnected();
} else {
// XXX: it's not yet clear what the order of preference should
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment