From 15b5e3b6c02d27e934496c58688b65e5813192d8 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 4 Jun 2009 09:37:59 +0900 Subject: [PATCH] hack for race condition with queue clearing --- anki/sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/sound.py b/anki/sound.py index 1205654d9..786dc4c22 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -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