Browse Source

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

dev1
paweldomas 10 years ago
parent
commit
c310644511
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js View File

@@ -114,7 +114,7 @@ XMPP.prototype._connect = function (jid, password) {
114 114
             logger.info("My Jabber ID: " + self.connection.jid);
115 115
 
116 116
             // Schedule ping ?
117
-            var pingJid = config.hosts.domain;
117
+            var pingJid = connection.domain;
118 118
             connection.ping.hasPingSupport(
119 119
                 pingJid,
120 120
                 function (hasPing) {

Loading…
Cancel
Save