Add extra check before accepting a passed in connection.
No use in using a passed in connection that's not connected.
This commit is contained in:
parent
aa2c38548c
commit
bb54874f35
|
@ -4530,7 +4530,7 @@
|
||||||
|
|
||||||
this.initConnection = function () {
|
this.initConnection = function () {
|
||||||
var rid, sid, jid;
|
var rid, sid, jid;
|
||||||
if (this.connection) {
|
if (this.connection && this.connection.connected) {
|
||||||
this.onConnected();
|
this.onConnected();
|
||||||
} else {
|
} else {
|
||||||
// XXX: it's not yet clear what the order of preference should
|
// XXX: it's not yet clear what the order of preference should
|
||||||
|
|
Loading…
Reference in New Issue
Block a user