Skip to content

Commit 61d548e

Browse files
fixed video end bug
1 parent f563ca6 commit 61d548e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/packages/lowcoder/src/comps/comps/meetingComp/videoMeetingControllerComp.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ const shareScreen = async (sharing: boolean) => {
167167
};
168168
const leaveChannel = async () => {
169169
//stops local sharing video
170-
screenShareStream.close();
170+
if (screenShareStream) {
171+
screenShareStream.close();
172+
}
171173

172174
//stops local video streaming and puts off the camera
173175
if (videoTrack) {

0 commit comments

Comments
 (0)