Reduce sleep duration in connection checks and main loop for improved responsiveness

1 parent 09b84901
...@@ -580,7 +580,7 @@ def check_connection(): ...@@ -580,7 +580,7 @@ def check_connection():
if cfg['listen']: if cfg['listen']:
continue continue
start_client(cfg) start_client(cfg)
sleep(5) sleep(0.1) # 5
def check_job(): def check_job():
...@@ -675,7 +675,7 @@ def main_loop(conf_file): ...@@ -675,7 +675,7 @@ def main_loop(conf_file):
check_connection() check_connection()
check_job() check_job()
check_parser() check_parser()
sleep(0.5) sleep(0.1)
except KeyboardInterrupt: except KeyboardInterrupt:
out() out()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!