Change add missing queue to call.

This commit is contained in:
JackDandy 2015-06-14 19:13:43 +01:00
parent ee8e44f914
commit b155f021e9

View file

@ -13,7 +13,7 @@ class Event:
class Events(threading.Thread): class Events(threading.Thread):
def __init__(self, callback): def __init__(self, callback):
super(Events, self).__init__() super(Events, self).__init__()
self.queue = moves.Queue() self.queue = moves.queue.Queue()
self.daemon = True self.daemon = True
self.callback = callback self.callback = callback
self.name = "EVENT-QUEUE" self.name = "EVENT-QUEUE"
@ -33,7 +33,7 @@ class Events(threading.Thread):
# event completed # event completed
self.queue.task_done() self.queue.task_done()
except moves.Empty: except moves.queue.Empty:
type = None type = None
# exiting thread # exiting thread