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

This commit is contained in:
Stefan Dej 2023-10-01 07:47:22 +02:00 committed by GitHub
parent 890b9969ae
commit 2b73cce47a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
beforeDestroy() {
this.pc?.close()
if (this.restartTimer) window.clearTimeout(this.restartTimer)
}
restartStream() {