aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--klippy/gcode.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py
index ccf78fac..49fed250 100644
--- a/klippy/gcode.py
+++ b/klippy/gcode.py
@@ -53,6 +53,8 @@ class GCodeParser:
self.gcode_handlers = self.build_handlers(is_ready)
if not is_ready:
# Printer is shutdown (could be running in a background thread)
+ if self.is_fileinput:
+ self.printer.request_exit()
return
# Lookup printer components
self.toolhead = self.printer.objects.get('toolhead')