Skip to content

Commit

Permalink
fix handling of nodelet manager events
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed Mar 9, 2014
1 parent af21fda commit eab4f35
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/capabilities/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,11 @@ def _handle_capability_events(self, event):
return
# Specially handle the nodelet manager
if event.capability == _special_nodelet_manager_capability:
if event.type == event.LAUNCHED:
return
elif event.type == event.TERMINATED:
if event.type == event.TERMINATED:
if not rospy.is_shutdown():
rospy.logerr("Capability server's nodelet manager terminated unexpectedly.")
self.shutdown()
return
# Update the capability
capability = event.capability
with self.__graph_lock:
Expand Down

0 comments on commit eab4f35

Please sign in to comment.