Skip to content

Commit

Permalink
handle uninitielized action clients
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Weisshardt authored May 29, 2017
1 parent b4abb41 commit 5216333
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1190,6 +1190,8 @@ def set_failed(self,error_code,message=""):
def get_state(self):
if self.client_mode != "": # not processing an actionlib client
return self.client_state
elif self.client == None:
return None
else:
return self.client.get_state()

Expand Down

0 comments on commit 5216333

Please sign in to comment.