Skip to content
This repository was archived by the owner on Oct 25, 2024. It is now read-only.

Commit 59135e5

Browse files
jianjunztaste1981
authored andcommitted
Do not fire error event when a publication/subscription is ended. (#141)
1 parent f833aec commit 59135e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/sdk/conference/channel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,9 @@ export class ConferencePeerConnectionChannel extends EventDispatcher {
593593
if (p) {
594594
return this._rejectPromise(error);
595595
}
596+
if (this._ended) {
597+
return;
598+
}
596599
const dispatcher = this._publication || this._subscription;
597600
if (!dispatcher) {
598601
Logger.warning('Neither publication nor subscription is available.');

0 commit comments

Comments
 (0)