diff --git a/anki/sound.py b/anki/sound.py index e4764b139..d41ea8f8e 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -135,6 +135,7 @@ def setupMPV(): mpvManager = MpvManager() _player = mpvManager.queueFile _queueEraser = mpvManager.clearQueue + atexit.register(cleanupMPV) def cleanupMPV(): global mpvManager, _player, _queueEraser