소스 검색

fix(XmppConnection): sendUnavailableBeacon

Copy/paste mistake - there's no such thing as this.connection in
the XmppConnection. Hard to track down because no error is logged.
release-8443
paweldomas 5 년 전
부모
커밋
b8f68b98be
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      modules/xmpp/XmppConnection.js

+ 1
- 1
modules/xmpp/XmppConnection.js 파일 보기

@@ -399,7 +399,7 @@ export default class XmppConnection extends Listenable {
399 399
      * @returns {boolean} - true if the beacon was sent.
400 400
      */
401 401
     sendUnavailableBeacon() {
402
-        if (!navigator.sendBeacon || this.connection.disconnecting || !this.connection.connected) {
402
+        if (!navigator.sendBeacon || this._stropheConn.disconnecting || !this._stropheConn.connected) {
403 403
             return false;
404 404
         }
405 405
 

Loading…
취소
저장