Fix exception when stopping mpv/vlc
This commit is contained in:
parent
f2c96389ad
commit
a90047d14c
@ -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")
|
||||||
|
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user