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

add config argument to update_id_patterns()

parent 72822c19
Branches
No related tags found
No related merge requests found
......@@ -320,7 +320,7 @@ def read_key_input(input_queue, config, logger):
time.sleep(0.01)
def update_id_patterns() -> 'Config':
def update_id_patterns(config) -> 'Config':
if config["server"]["port"] == 80:
protocol = "http"
else:
......@@ -376,7 +376,7 @@ def main():
if last_pattern_update is None or time.time() - last_pattern_update > config["server"]["update_frequency"]:
last_pattern_update = time.time()
update_id_patterns()
update_id_patterns(config)
time.sleep(0.01)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment