cleanup mpv on exit

This commit is contained in:
Damien Elmes 2019-04-29 14:36:51 +10:00
parent 9fb5a3257c
commit 70c584671d

View File

@ -135,6 +135,7 @@ def setupMPV():
mpvManager = MpvManager()
_player = mpvManager.queueFile
_queueEraser = mpvManager.clearQueue
atexit.register(cleanupMPV)
def cleanupMPV():
global mpvManager, _player, _queueEraser