Re-use current connection's domain as ping destination instead of accessing config.hosts.domain directly.

This commit is contained in:
paweldomas 2015-11-20 14:01:41 -06:00
parent efd2545bd2
commit 6243c8fb96
1 changed files with 1 additions and 1 deletions

View File

@ -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) {