From 505e96b7edc54e2158cb5cc37be374a60eb52bc0 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 27 Jun 2019 18:32:25 -0400 Subject: klippy: Only set the run_result if it hasn't already been set Signed-off-by: Kevin O'Connor --- klippy/klippy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'klippy/klippy.py') diff --git a/klippy/klippy.py b/klippy/klippy.py index 65538aa9..217ea53b 100644 --- a/klippy/klippy.py +++ b/klippy/klippy.py @@ -202,7 +202,8 @@ class Printer: def send_event(self, event, *params): return [cb(*params) for cb in self.event_handlers.get(event, [])] def request_exit(self, result): - self.run_result = result + if self.run_result is None: + self.run_result = result self.reactor.end() -- cgit v1.2.3-70-g09d2