We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f37aaa9 commit e705c15Copy full SHA for e705c15
.changeset/cyan-dogs-know.md
@@ -0,0 +1,5 @@
1
+---
2
+"livekit-client": patch
3
4
+
5
+Ensure handleDisconnect is called also when already in Reconnecting state
src/room/RTCEngine.ts
@@ -453,7 +453,7 @@ export default class RTCEngine extends (EventEmitter as new () => TypedEventEmit
453
}
454
} else if (connectionState === PCTransportState.FAILED) {
455
// on Safari, PeerConnection will switch to 'disconnected' during renegotiation
456
- if (this.pcState === PCState.Connected) {
+ if (this.pcState === PCState.Connected || this.pcState === PCState.Reconnecting) {
457
this.pcState = PCState.Disconnected;
458
this.fullReconnectOnNext = true;
459
this.handleDisconnect(
0 commit comments