From de6aa83a4dc238a4dea92ebe49fecacebe5d2712 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 26 Jan 2024 09:54:16 +0000 Subject: [PATCH] avoid interrupting vbrowsers on server restart --- src/components/App/App.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/App/App.tsx b/src/components/App/App.tsx index 064ae36320..cd0c1401e7 100644 --- a/src/components/App/App.tsx +++ b/src/components/App/App.tsx @@ -401,6 +401,9 @@ export default class App extends React.Component { 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; @@ -409,8 +412,9 @@ export default class App extends React.Component { // 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( {