hack for race condition with queue clearing

This commit is contained in:
Damien Elmes 2009-06-04 09:37:59 +09:00
parent c6cddeb163
commit 15b5e3b6c0

View file

@ -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