mirror of https://github.com/Desuuuu/klipper.git
klippy: Only set the run_result if it hasn't already been set
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
e5f74a64ed
commit
505e96b7ed
|
@ -202,6 +202,7 @@ class Printer:
|
|||
def send_event(self, event, *params):
|
||||
return [cb(*params) for cb in self.event_handlers.get(event, [])]
|
||||
def request_exit(self, result):
|
||||
if self.run_result is None:
|
||||
self.run_result = result
|
||||
self.reactor.end()
|
||||
|
||||
|
|
Loading…
Reference in New Issue