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

This commit is contained in:
paweldomas 2015-08-28 11:30:42 +02:00
parent 60d0279e08
commit 51c23ae133
1 changed files with 1 additions and 1 deletions

View File

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