Merge pull request #419 from JackDandy/feature/ChangeQueue

Change add missing queue to call.
This commit is contained in:
JackDandy 2015-06-14 19:17:37 +01:00
commit 3741b3ce2e

View file

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