Skip to content

Commit

Permalink
Respect stopLocalTrackOnUnpublish in event of engine disconnect (#293)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Jun 30, 2022
1 parent d389fda commit e65443a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cuddly-llamas-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'livekit-client': patch
---

Respect stopLocalTrackOnUnpublish in event of engine disconnect
2 changes: 1 addition & 1 deletion src/room/Room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class Room extends (EventEmitter as new () => TypedEmitter<RoomEventCallbacks>)
},
)
.on(EngineEvent.Disconnected, () => {
this.handleDisconnect();
this.handleDisconnect(this.options.stopLocalTrackOnUnpublish);
})
.on(EngineEvent.ActiveSpeakersUpdate, this.handleActiveSpeakersUpdate)
.on(EngineEvent.DataPacketReceived, this.handleDataPacket)
Expand Down

0 comments on commit e65443a

Please sign in to comment.