Skip to content

Commit

Permalink
Merge pull request Azure-Samples#108 from vriosrada-msft/main
Browse files Browse the repository at this point in the history
Fix issue while turning video on 3 times
  • Loading branch information
vriosrada-msft authored Mar 6, 2023
2 parents 9e60ac5 + 472a509 commit f3cac48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Project/src/MakeCall/FunctionalStreamRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ export const FunctionalStreamRenderer = forwardRef(({
}
const isReceivingChanged = () => {
try {
setIsLoading(stream.isAvailable && !stream.isReceiving);
if (view && stream) {
setIsLoading(stream.isAvailable && !stream.isReceiving);
}
} catch (e) {
console.error(e);
}
Expand Down

0 comments on commit f3cac48

Please sign in to comment.