mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
hack for race condition with queue clearing
This commit is contained in:
parent
c6cddeb163
commit
15b5e3b6c0
1 changed files with 1 additions and 1 deletions
|
@ -118,7 +118,6 @@ class QueueMonitor(threading.Thread):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
while 1:
|
while 1:
|
||||||
time.sleep(0.1)
|
|
||||||
if queue:
|
if queue:
|
||||||
path = queue.pop(0)
|
path = queue.pop(0)
|
||||||
try:
|
try:
|
||||||
|
@ -128,6 +127,7 @@ class QueueMonitor(threading.Thread):
|
||||||
raise Exception("Audio player not found")
|
raise Exception("Audio player not found")
|
||||||
else:
|
else:
|
||||||
return
|
return
|
||||||
|
time.sleep(0.1)
|
||||||
|
|
||||||
def playExternal(path):
|
def playExternal(path):
|
||||||
global manager
|
global manager
|
||||||
|
|
Loading…
Reference in a new issue