update_manager: broadcast update_refreshed notification in the status refresh handler

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Eric Callahan 2021-08-26 15:38:30 -04:00
parent a1cf02231a
commit b040640813
1 changed files with 5 additions and 0 deletions

View File

@ -409,6 +409,11 @@ class UpdateManager:
ret = self.cmd_helper.get_rate_limit_stats()
ret['version_info'] = vinfo
ret['busy'] = self.cmd_helper.is_update_busy()
if need_refresh:
event_loop = self.server.get_event_loop()
event_loop.delay_callback(
.2, self.server.send_event,
"update_manager:update_refreshed", ret)
return ret
async def _handle_repo_recovery(self,