chg: Avoid exception if the backend is already down

pull/254/head
Raphaël Vinot 2021-08-31 15:43:55 +02:00
parent 11dd288bc4
commit 6db708bb93
1 changed files with 5 additions and 1 deletions

View File

@ -102,5 +102,9 @@ class AbstractManager(ABC):
self.process.send_signal(signal.SIGTERM)
except Exception:
pass
self.unset_running()
try:
self.unset_running()
except Exception:
# the services can already be down at that point.
pass
self.logger.info(f'Shutting down {self.__class__.__name__}')