fix: fix webcam (camera-streamer) stop autorestart beforeDestory (#1556)

This commit is contained in:
Stefan Dej authored and GitHub committed 2023-10-01 07:47:22 +02:00
1 parent 890b9969ae
commit 2b73cce47a
1 file changed
+1
@@ -171,6 +171,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
beforeDestroy() {
this.pc?.close()
if (this.restartTimer) window.clearTimeout(this.restartTimer)
}
restartStream() {