From 2b73cce47ac9768bb50d0bdf6fcf950e36763e39 Mon Sep 17 00:00:00 2001 From: Stefan Dej Date: Sun, 1 Oct 2023 07:47:22 +0200 Subject: [PATCH] fix: fix webcam (camera-streamer) stop autorestart beforeDestory (#1556) --- src/components/webcams/WebrtcCameraStreamer.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/webcams/WebrtcCameraStreamer.vue b/src/components/webcams/WebrtcCameraStreamer.vue index 010392985..a73646ffe 100644 --- a/src/components/webcams/WebrtcCameraStreamer.vue +++ b/src/components/webcams/WebrtcCameraStreamer.vue @@ -171,6 +171,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin) beforeDestroy() { this.pc?.close() + if (this.restartTimer) window.clearTimeout(this.restartTimer) } restartStream() {