mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
if mplayerCond is none, finish thread
This commit is contained in:
parent
ea5a867397
commit
a4d1c55d4f
1 changed files with 2 additions and 0 deletions
|
@ -137,6 +137,8 @@ class MplayerMonitor(threading.Thread):
|
||||||
while 1:
|
while 1:
|
||||||
mplayerCond.acquire()
|
mplayerCond.acquire()
|
||||||
while not mplayerQueue:
|
while not mplayerQueue:
|
||||||
|
if not mplayerCond:
|
||||||
|
return
|
||||||
mplayerCond.wait()
|
mplayerCond.wait()
|
||||||
if not self.mplayer:
|
if not self.mplayer:
|
||||||
self.startProcess()
|
self.startProcess()
|
||||||
|
|
Loading…
Reference in a new issue