Skip to content

Commit

Permalink
make stopping the launch manager more robust to errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wjwwood committed May 14, 2014
1 parent 9eae349 commit 02fca5e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/capabilities/launch_manager.py
Expand Up @@ -114,8 +114,12 @@ def stop(self):
if self.stopping:
return # pragma: no cover
self.stopping = True
for pid in self.__running_launch_files:
self.__stop_by_pid(pid) # pragma: no cover
for pid in self.__running_launch_files: # pragma: no cover
try:
self.__stop_by_pid(pid)
except RuntimeError as exc:
if "launch file with PID" not in "{0}".format(exc):
raise # Re-raise

def __stop_by_pid(self, pid):
if pid not in self.__running_launch_files:
Expand Down

0 comments on commit 02fca5e

Please sign in to comment.