Re-use current connection's domain as ping destination instead of accessing config.hosts.domain directly.
This commit is contained in:
parent
efd2545bd2
commit
6243c8fb96
|
@ -114,7 +114,7 @@ XMPP.prototype._connect = function (jid, password) {
|
|||
logger.info("My Jabber ID: " + self.connection.jid);
|
||||
|
||||
// Schedule ping ?
|
||||
var pingJid = config.hosts.domain;
|
||||
var pingJid = connection.domain;
|
||||
connection.ping.hasPingSupport(
|
||||
pingJid,
|
||||
function (hasPing) {
|
||||
|
|
Loading…
Reference in New Issue