mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
cleanup mpv on exit
This commit is contained in:
parent
9fb5a3257c
commit
70c584671d
1 changed files with 1 additions and 0 deletions
|
@ -135,6 +135,7 @@ def setupMPV():
|
|||
mpvManager = MpvManager()
|
||||
_player = mpvManager.queueFile
|
||||
_queueEraser = mpvManager.clearQueue
|
||||
atexit.register(cleanupMPV)
|
||||
|
||||
def cleanupMPV():
|
||||
global mpvManager, _player, _queueEraser
|
||||
|
|
Loading…
Reference in a new issue