diff --git a/moonraker/plugins/shell_command.py b/moonraker/plugins/shell_command.py index 41c7ff9..1852020 100644 --- a/moonraker/plugins/shell_command.py +++ b/moonraker/plugins/shell_command.py @@ -107,6 +107,8 @@ class ShellCommand: return self._check_proc_success(complete) async def run_with_response(self, timeout=2., retries=1): + self.return_code = self.proc = None + self.cancelled = False while retries > 0: stdout = stderr = None if await self._create_subprocess():