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;