Fix:Close playback when logging out

This commit is contained in:
advplyr 2022-04-26 16:46:29 -05:00
parent 72f10e5f42
commit d64dd63ea4
3 changed files with 7 additions and 5 deletions

View file

@ -634,6 +634,11 @@ export default {
this.$nextTick(this.init)
},
beforeDestroy() {
if (this.playbackSession) {
console.log('[AudioPlayer] Before destroy closing playback')
this.closePlayback()
}
this.forceCloseDropdownMenu()
document.body.removeEventListener('touchstart', this.touchstart)
document.body.removeEventListener('touchend', this.touchend)