mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-26 02:26:30 +00:00
Minimize downtime to 1 sec (#223)
This commit is contained in:
parent
5674d32bad
commit
66c93e7176
@ -51,7 +51,7 @@ class DockerSupervisor(DockerInterface):
|
||||
_LOGGER.info("Update supervisor docker to %s:%s", self.image, tag)
|
||||
|
||||
if await self.loop.run_in_executor(None, self._install, tag):
|
||||
self.loop.call_later(2, self.loop.stop)
|
||||
self.loop.call_later(1, self.loop.stop)
|
||||
return True
|
||||
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user