diff --git a/subiquity/server/controllers/refresh.py b/subiquity/server/controllers/refresh.py index c37d8529..283f28c2 100644 --- a/subiquity/server/controllers/refresh.py +++ b/subiquity/server/controllers/refresh.py @@ -229,7 +229,7 @@ class RefreshController(SubiquityController): return change async def GET(self, wait: bool = False) -> RefreshStatus: - if wait: + if self.active and wait: await self.check_task.wait() return self.status