Skip to content

Commit

Permalink
fix(send-picture): only request preempt if state machine running
Browse files Browse the repository at this point in the history
  • Loading branch information
rokusottervanger committed Jun 16, 2018
1 parent de62d43 commit 547a183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action_server/src/action_server/actions/send_picture.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def _start(self):
self._execute_result.succeeded = True

def _cancel(self):
if self.detect_face_state_machine:
if self.detect_face_state_machine.is_running:
self.detect_face_state_machine.request_preempt()


Expand Down

0 comments on commit 547a183

Please sign in to comment.