mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -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):
|
||||
while 1:
|
||||
time.sleep(0.1)
|
||||
if queue:
|
||||
path = queue.pop(0)
|
||||
try:
|
||||
|
@ -128,6 +127,7 @@ class QueueMonitor(threading.Thread):
|
|||
raise Exception("Audio player not found")
|
||||
else:
|
||||
return
|
||||
time.sleep(0.1)
|
||||
|
||||
def playExternal(path):
|
||||
global manager
|
||||
|
|
Loading…
Reference in a new issue