Skip to content

Commit

Permalink
fix: fix webcam (camera-streamer) stop autorestart beforeDestory (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Oct 1, 2023
1 parent 890b996 commit 2b73cce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/webcams/WebrtcCameraStreamer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
beforeDestroy() {
this.pc?.close()
if (this.restartTimer) window.clearTimeout(this.restartTimer)
}
restartStream() {
Expand Down

0 comments on commit 2b73cce

Please sign in to comment.