Skip to content

Commit

Permalink
fix: use terminate() in beforeDestroy instead of pc.close()
Browse files Browse the repository at this point in the history
This will add a line in the console log, that the session is closed

Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Aug 25, 2024
1 parent bbb33b8 commit 05c1e26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/webcams/streamers/WebrtcCameraStreamer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ export default class WebrtcCameraStreamer extends Mixins(BaseMixin, WebcamMixin)
}
beforeDestroy() {
this.pc?.close()
this.terminate()
if (this.restartTimer) window.clearTimeout(this.restartTimer)
}
Expand Down

0 comments on commit 05c1e26

Please sign in to comment.