diff --git a/printer_webui/util/comm.py b/printer_webui/util/comm.py index 147d78b..6666968 100644 --- a/printer_webui/util/comm.py +++ b/printer_webui/util/comm.py @@ -388,7 +388,7 @@ class MachineCom(object): self._sendCommand("M105") elif 'ok' in line: self._changeState(self.STATE_OPERATIONAL) - if time.time() > timeout: + elif time.time() > timeout: self.close() elif self._state == self.STATE_OPERATIONAL: #Request the temperature on comm timeout (every 2 seconds) when we are not printing.