Skip to content
Snippets Groups Projects
Commit 171abbc1 authored by Sybren A. Stüvel's avatar Sybren A. Stüvel
Browse files

Worked around a race condition shutting down.

parent 42a4cf1a
No related branches found
No related tags found
No related merge requests found
...@@ -410,6 +410,10 @@ class AbstractSubprocessCommand(AbstractCommand): ...@@ -410,6 +410,10 @@ class AbstractSubprocessCommand(AbstractCommand):
# The process is already stopped, so killing is impossible. That's ok. # The process is already stopped, so killing is impossible. That's ok.
self._log.debug("The process was already stopped, aborting is impossible. That's ok.") self._log.debug("The process was already stopped, aborting is impossible. That's ok.")
return return
except AttributeError:
# This can happen in some race conditions, it's fine.
self._log.debug("The process was not yet started, aborting is impossible. That's ok.")
return
retval = await self.proc.wait() retval = await self.proc.wait()
self._log.info('The process aborted with status code %s', retval) self._log.info('The process aborted with status code %s', retval)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment