From 1294cff9afbc1e62965c73403e8f8783e50db4bc Mon Sep 17 00:00:00 2001 From: paweldomas Date: Wed, 11 Nov 2015 11:53:21 -0600 Subject: [PATCH] Fixes issue in merging pings. --- modules/xmpp/xmpp.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/xmpp/xmpp.js b/modules/xmpp/xmpp.js index f412a7b22..ff0e7a65f 100644 --- a/modules/xmpp/xmpp.js +++ b/modules/xmpp/xmpp.js @@ -113,7 +113,8 @@ XMPP.prototype._connect = function (jid, password) { logger.info("My Jabber ID: " + self.connection.jid); - self.connection.ping.startInterval(config.hosts.domain); + self.connection.ping.startInterval( + Strophe.getDomainFromJid(self.connection.jid)); if (password) authenticatedUser = true;