Emit stream_closed even if stream is not found

This commit is contained in:
advplyr 2021-09-01 19:39:38 -05:00
parent c5bc865e6c
commit 3c854ca32b
6 changed files with 10 additions and 9 deletions

View file

@ -111,7 +111,7 @@ export default {
}
},
streamClosed(streamId) {
if (this.stream && this.stream.id === streamId) {
if (this.stream && (this.stream.id === streamId || this.stream === 'n/a')) {
this.terminateStream()
this.$store.commit('clearStreamAudiobook', this.stream.audiobook.id)
this.stream = null