Re-use current connection's domain as ping destination instead of accessing config.hosts.domain directly.
This commit is contained in:
parent
60d0279e08
commit
51c23ae133
|
@ -88,7 +88,7 @@ function connect(jid, password) {
|
|||
console.info("My Jabber ID: " + connection.jid);
|
||||
|
||||
// Schedule ping ?
|
||||
var pingJid = config.hosts.domain;
|
||||
var pingJid = connection.domain;
|
||||
connection.ping.hasPingSupport(
|
||||
pingJid,
|
||||
function (hasPing) {
|
||||
|
|
Loading…
Reference in New Issue