Skip to content

Commit

Permalink
Fix unregister listener type in audio-stream-controller.ts (#6778)
Browse files Browse the repository at this point in the history
Regression introduced in dev and 1.6.0-beta.1 only. Listeners are still removed on destroy with removeAllListeners.
  • Loading branch information
robwalch authored Oct 17, 2024
1 parent e21e807 commit d25ad97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controller/audio-stream-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class AudioStreamController
hls.off(Events.BUFFER_FLUSHING, this.onBufferFlushing, this);
hls.off(Events.BUFFER_FLUSHED, this.onBufferFlushed, this);
hls.off(Events.INIT_PTS_FOUND, this.onInitPtsFound, this);
hls.on(Events.FRAG_LOADING, this.onFragLoading, this);
hls.off(Events.FRAG_LOADING, this.onFragLoading, this);
hls.off(Events.FRAG_BUFFERED, this.onFragBuffered, this);
}

Expand Down

0 comments on commit d25ad97

Please sign in to comment.