Fix exception when stopping mpv/vlc

This commit is contained in:
PapaTutuWawa 2025-01-12 01:13:40 +00:00
parent f2c96389ad
commit a90047d14c
2 changed files with 0 additions and 2 deletions

View File

@ -120,7 +120,6 @@ class MpvProgram(Program):
def stop(self, src): def stop(self, src):
if self.is_active(): if self.is_active():
self._process.terminate() self._process.terminate()
self._process = None
def exit(self): def exit(self):
self.stop("mpvplayer.exit") self.stop("mpvplayer.exit")

View File

@ -155,7 +155,6 @@ class VlcProgram(Program):
def stop(self, src): def stop(self, src):
if self.is_active(): if self.is_active():
self._process.terminate() self._process.terminate()
self._process = None
def exit(self): def exit(self):
self.stop("mpvplayer.exit") self.stop("mpvplayer.exit")