[bumblebee] Make update lock on input non-blocking
for consistent lock behaviour, make the input loop lock non-blocking. see #702
This commit is contained in:
parent
aa6238a5c6
commit
e42f09b27e
1 changed files with 4 additions and 4 deletions
|
@ -68,8 +68,8 @@ def handle_input(output, update_lock):
|
|||
modules[event["name"]] = True
|
||||
except ValueError:
|
||||
pass
|
||||
update_lock.acquire()
|
||||
core.event.trigger("update", modules.keys())
|
||||
if update_lock.acquire(blocking=False) == True:
|
||||
core.event.trigger("update", modules.keys(), force=True)
|
||||
core.event.trigger("draw")
|
||||
update_lock.release()
|
||||
|
||||
|
|
Loading…
Reference in a new issue