diff --git a/src/equicordplugins/loginWithQR/ui/modals/QrModal.tsx b/src/equicordplugins/loginWithQR/ui/modals/QrModal.tsx index 2523d0fd..efa3ba64 100644 --- a/src/equicordplugins/loginWithQR/ui/modals/QrModal.tsx +++ b/src/equicordplugins/loginWithQR/ui/modals/QrModal.tsx @@ -344,6 +344,7 @@ function QrModal(props: ModalProps) { stream = str; video.srcObject = str; video.addEventListener("loadedmetadata", () => { + if (stopped) return stop(str); video.play(); modalProps.current.setPreview(video); snapshot();