Skip to content

Commit

Permalink
Fix ClientEvent key removal
Browse files Browse the repository at this point in the history
  • Loading branch information
Joel Collins committed Apr 24, 2020
1 parent c1a509d commit b89b8ec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion labthings/core/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def set(self, timeout=5):
if now - event[1] >= timeout:
remove_keys.add(ident)
if remove_keys:
del self.events[ident]
for ident in remove_keys:
del self.events[ident]

def clear(self):
"""Clear frame event, once processed."""
Expand Down

0 comments on commit b89b8ec

Please sign in to comment.