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:
Kevin O'Connor 2019-06-27 18:32:25 -04:00
parent e5f74a64ed
commit 505e96b7ed
1 changed files with 2 additions and 1 deletions

View File

@ -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()