diff --git a/server/src/main/resources/shell_wrapper.py b/server/src/main/resources/shell_wrapper.py index 88e3e312..d14407ec 100644 --- a/server/src/main/resources/shell_wrapper.py +++ b/server/src/main/resources/shell_wrapper.py @@ -145,7 +145,13 @@ def main(): log.info("Starting session loop") try: while True: - for command in controller.read(): + commands = controller.read() + + if not commands: + time.sleep(0.1) + continue + + for command in commands: setup_output() log.debug(f"Processing command {command}") result = handler.exec(command)