Skip to content

Commit

Permalink
Use STATE_MISMATCH disconnect reason in connection reconciliation (#705)
Browse files Browse the repository at this point in the history
* Use STATE_MISMATCH disconnect reason in connection reconciliation

* Create many-llamas-pump.md
  • Loading branch information
lukasIO committed May 16, 2023
1 parent b90aa33 commit 338dedd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/many-llamas-pump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Use STATE_MISMATCH disconnect reason in connection reconciliation
2 changes: 1 addition & 1 deletion src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1374,7 +1374,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
this.recreateEngine();
this.handleDisconnect(
this.options.stopLocalTrackOnUnpublish,
DisconnectReason.UNKNOWN_REASON,
DisconnectReason.STATE_MISMATCH,
);
}
} else {
Expand Down

0 comments on commit 338dedd

Please sign in to comment.