Skip to content

Commit

Permalink
fix(Listenable) fix not adding cancellable listeners after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
saghul authored and damencho committed Dec 15, 2023
1 parent 610eab4 commit 5227ea0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/xmpp/ChatRoom.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export default class ChatRoom extends Listenable {
preJoin.then(() => {
this.sendPresence(true);
this._removeConnListeners.push(
this.connection.addEventListener(
this.connection.addCancellableListener(
XmppConnection.Events.CONN_STATUS_CHANGED,
this.onConnStatusChanged.bind(this))
);
Expand Down
2 changes: 1 addition & 1 deletion modules/xmpp/JingleSessionPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export default class JingleSessionPC extends JingleSession {

this._xmppListeners = [];
this._xmppListeners.push(
connection.addEventListener(
connection.addCancellableListener(
XmppConnection.Events.CONN_STATUS_CHANGED,
this.onXmppStatusChanged.bind(this))
);
Expand Down

0 comments on commit 5227ea0

Please sign in to comment.