Skip to content

Commit

Permalink
fix(MediaMTX): cancel open restarts, before start connecting
Browse files Browse the repository at this point in the history
Signed-off-by: Stefan Dej <[email protected]>
  • Loading branch information
meteyou committed Aug 23, 2024
1 parent 1f8502c commit d947f95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/webcams/streamers/WebrtcMediaMTX.vue
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,12 @@ export default class WebrtcMediaMTX extends Mixins(BaseMixin, WebcamMixin) {
}
async start() {
// clear any potentially open restart timeout
if (this.restartTimeout !== null) {
clearTimeout(this.restartTimeout)
this.restartTimeout = null
}
// stop if url is not valid
if (this.url === null) {
this.log('invalid url')
Expand Down

0 comments on commit d947f95

Please sign in to comment.