Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stuck reconnect #475

Merged
merged 19 commits into from
Oct 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update src/room/RTCEngine.ts
Co-authored-by: David Zhao <dz@livekit.io>
  • Loading branch information
lukasIO and davidzhao authored Oct 20, 2022
commit 8a2dc468b8b7828baf200852ad42d85cc54dadf9
2 changes: 1 addition & 1 deletion src/room/RTCEngine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
close() {
this._isClosed = true;
this.removeAllListeners();
this.unRegisterOnLineListener();
this.deregisterOnLineListener();
this.clearPendingReconnect();
if (this.publisher && this.publisher.pc.signalingState !== 'closed') {
this.publisher.pc.getSenders().forEach((sender) => {
Expand Down