Browse Source

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

master
paweldomas 10 years ago
parent
commit
51c23ae133
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      modules/xmpp/xmpp.js

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

@@ -88,7 +88,7 @@ function connect(jid, password) {
88 88
                 console.info("My Jabber ID: " + connection.jid);
89 89
 
90 90
                 // Schedule ping ?
91
-                var pingJid = config.hosts.domain;
91
+                var pingJid = connection.domain;
92 92
                 connection.ping.hasPingSupport(
93 93
                     pingJid,
94 94
                     function (hasPing) {

Loading…
Cancel
Save