Skip to content

Commit

Permalink
[mirotalksfu] - fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
miroslavpejic85 committed Jan 5, 2025
1 parent 0447694 commit cd48d36
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions public/js/RoomClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -2545,6 +2545,8 @@ class RoomClient {
}

removeConsumer(consumer_id, consumer_kind) {
if (!this.consumers.get(consumer_id)) return;

console.log('Remove consumer', { consumer_id: consumer_id, consumer_kind: consumer_kind });

const elem = this.getId(consumer_id);
Expand Down Expand Up @@ -2601,12 +2603,8 @@ class RoomClient {
}
}

const consumer = this.consumers.get(consumer_id);
if (consumer) {
consumer.close();
this.consumers.delete(consumer_id);
}

this.consumers.get(consumer_id).close();
this.consumers.delete(consumer_id);
this.sound('left');
}

Expand Down

0 comments on commit cd48d36

Please sign in to comment.