Browse Source

fix(Listenable) fix not adding cancellable listeners after refactor

release-8443
Saúl Ibarra Corretgé 1 year ago
parent
commit
5227ea03a8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      modules/xmpp/ChatRoom.js
  2. 1
    1
      modules/xmpp/JingleSessionPC.js

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

@@ -234,7 +234,7 @@ export default class ChatRoom extends Listenable {
234 234
             preJoin.then(() => {
235 235
                 this.sendPresence(true);
236 236
                 this._removeConnListeners.push(
237
-                    this.connection.addEventListener(
237
+                    this.connection.addCancellableListener(
238 238
                         XmppConnection.Events.CONN_STATUS_CHANGED,
239 239
                         this.onConnStatusChanged.bind(this))
240 240
                 );

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

@@ -349,7 +349,7 @@ export default class JingleSessionPC extends JingleSession {
349 349
 
350 350
         this._xmppListeners = [];
351 351
         this._xmppListeners.push(
352
-            connection.addEventListener(
352
+            connection.addCancellableListener(
353 353
                 XmppConnection.Events.CONN_STATUS_CHANGED,
354 354
                 this.onXmppStatusChanged.bind(this))
355 355
         );

Loading…
Cancel
Save