diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-03-01 10:06:44 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-03-01 10:06:44 -0500 |
commit | 027f52087cbaba86533a44c20099281c28d89e6a (patch) | |
tree | 9b55774ed9f94efe047167ad3f0a36a77754199d /klippy/gcode.py | |
parent | 69491e2dab77b2446fe13f6df1ab80b62d405192 (diff) | |
download | kutter-027f52087cbaba86533a44c20099281c28d89e6a.tar.gz kutter-027f52087cbaba86533a44c20099281c28d89e6a.tar.xz kutter-027f52087cbaba86533a44c20099281c28d89e6a.zip |
gcode: Improve handling of end of input when reading from a debug file
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/klippy/gcode.py b/klippy/gcode.py index 6a8674b0..7be039cb 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -224,6 +224,8 @@ class GCodeParser: # Special handling for debug file input EOF if not data and self.is_fileinput: if not self.is_processing_data: + self.reactor.unregister_fd(self.fd_handle) + self.fd_handle = None self.request_restart('exit') pending_commands.append("") # Handle case where multiple commands pending |