Commit cf4e4d9
authored
Fixes disconnect issue (#656)
If the track has already been disposed, the associated MediaStreamTrack is also disposed, causing unpublishTrack to throw an IllegalStateException ("MediaStreamTrack has been disposed."). To prevent this issue, dispose of the defaultTracks only after the track has been unpublished.1 parent 1eef3e6 commit cf4e4d9
File tree
2 files changed
+9
-4
lines changed- .changeset
- livekit-android-sdk/src/main/java/io/livekit/android/room/participant
2 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1550 | 1550 | | |
1551 | 1551 | | |
1552 | 1552 | | |
1553 | | - | |
1554 | | - | |
1555 | | - | |
1556 | | - | |
1557 | 1553 | | |
1558 | 1554 | | |
1559 | 1555 | | |
| |||
1569 | 1565 | | |
1570 | 1566 | | |
1571 | 1567 | | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
1572 | 1572 | | |
1573 | 1573 | | |
1574 | 1574 | | |
| |||
0 commit comments