浏览代码

fix(XmppConnection): the ATTACHED state equals to CONNECTED with jiconop

When Jiconop is used to attach to a warmed up BOSH session Strophe goes
to ATTACHED instead of the CONNECTED state.
tags/v0.0.2
paweldomas 5 年前
父节点
当前提交
567ba72675
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      modules/xmpp/XmppConnection.js

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

@@ -76,7 +76,7 @@ export default class XmppConnection extends Listenable {
76 76
      * @returns {boolean}
77 77
      */
78 78
     get connected() {
79
-        return this._status === Strophe.Status.CONNECTED;
79
+        return this._status === Strophe.Status.CONNECTED || this._status === Strophe.Status.ATTACHED;
80 80
     }
81 81
 
82 82
     /**

正在加载...
取消
保存