Skip to content
Snippets Groups Projects
Commit cc3927fb authored by David Huss's avatar David Huss :speech_balloon:
Browse files

Fix logic error in handling of timeouts

parent ae4a400e
No related branches found
No related tags found
No related merge requests found
......@@ -325,7 +325,7 @@ def read_key_input(input_queue, config, logger):
last_seen_cards.append({"id": joined_string, "time": time.time()})
else:
# Remove all cards from the list if they are past the threshold
last_seen_cards = [c for c in last_seen_cards if time.time()-c["time"] > config["client"]["ignore_duration"] ]
last_seen_cards = [c for c in last_seen_cards if time.time()-c["time"] < config["client"]["ignore_duration"] ]
if not joined_string in [c["id"] for c in last_seen_cards]:
input_queue.put(joined_string)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment