Skip to content

Commit

Permalink
avoid interrupting vbrowsers on server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
howardchung committed Jan 26, 2024
1 parent 21c1ca9 commit de6aa83
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ export default class App extends React.Component<AppProps, AppState> {
if (this.playingFileShare() && !isFileShare(currentMedia)) {
this.stopPublishingLocalStream();
}
if (this.playingVBrowser() && !isVBrowser(currentMedia)) {
this.stopVBrowser();
}
if (this.playingScreenShare() && isScreenShare(currentMedia)) {
// Ignore, it's probably a reconnection
return;
Expand All @@ -409,8 +412,9 @@ export default class App extends React.Component<AppProps, AppState> {
// Ignore, it's probably a reconnection
return;
}
if (this.playingVBrowser() && !isVBrowser(currentMedia)) {
this.stopVBrowser();
if (this.playingVBrowser() && isVBrowser(currentMedia)) {
// Ignore, it's probably a reconnection
return;
}
this.setState(
{
Expand Down

0 comments on commit de6aa83

Please sign in to comment.