Make block
param of queue.get() explicitly refer to block
This commit is contained in:
parent
df8135f105
commit
312293b221
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ class Bot(object):
|
||||||
self.lock.release()
|
self.lock.release()
|
||||||
self._trigger_client.send(b"TRIGGER")
|
self._trigger_client.send(b"TRIGGER")
|
||||||
|
|
||||||
type, returned = func_queue.get(True)
|
type, returned = func_queue.get(block=True)
|
||||||
if type == TRIGGER_EXCEPTION:
|
if type == TRIGGER_EXCEPTION:
|
||||||
raise returned
|
raise returned
|
||||||
elif type == TRIGGER_RETURN:
|
elif type == TRIGGER_RETURN:
|
||||||
|
|
Loading…
Reference in a new issue