mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Cleanup avplayer on profile close (#3754)
This commit is contained in:
parent
3364daa0cc
commit
760ce162fb
1 changed files with 1 additions and 0 deletions
|
@ -197,6 +197,7 @@ class AVPlayer:
|
|||
self.stop_and_clear_queue()
|
||||
for player in self.players:
|
||||
player.shutdown()
|
||||
self.players.clear()
|
||||
|
||||
def _stop_if_playing(self) -> None:
|
||||
if self.current_player:
|
||||
|
|
Loading…
Reference in a new issue