Skip to content

Commit b1d6959

Browse files
committed
Fix video starting when peer leaves i hope
1 parent ba98275 commit b1d6959

File tree

1 file changed

+5
-3
lines changed
  • frontend/src/app/collaboration/components

1 file changed

+5
-3
lines changed

frontend/src/app/collaboration/components/video.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const VideoCall = ({ provider }: VideoCallProps) => {
4242
urls: "turn:global.relay.metered.ca:80?transport=tcp",
4343
username: "2b012e1176eda910d0c8a755",
4444
credential: "6KjvgYahJZ21gdAp",
45-
}
45+
},
4646
],
4747
});
4848

@@ -90,7 +90,7 @@ const VideoCall = ({ provider }: VideoCallProps) => {
9090
urls: "turn:global.relay.metered.ca:80?transport=tcp",
9191
username: "2b012e1176eda910d0c8a755",
9292
credential: "6KjvgYahJZ21gdAp",
93-
}
93+
},
9494
],
9595
});
9696

@@ -233,7 +233,9 @@ const VideoCall = ({ provider }: VideoCallProps) => {
233233
setRemoteVideoSourceObject(false);
234234
iceCandidatesQueue.current = [];
235235
startPC();
236-
if (videoStart) startCall();
236+
if (videoStart) {
237+
startCall();
238+
}
237239
} else {
238240
setVideoStart(false);
239241
}

0 commit comments

Comments
 (0)