Cleanup avplayer on profile close (#3754)

This commit is contained in:
kelciour 2025-01-25 09:44:15 +03:00 committed by GitHub
parent 3364daa0cc
commit 760ce162fb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: