瀏覽代碼

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

master
paweldomas 10 年之前
父節點
當前提交
51c23ae133
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      modules/xmpp/xmpp.js

+ 1
- 1
modules/xmpp/xmpp.js 查看文件

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

Loading…
取消
儲存