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:
parent
a1cf02231a
commit
b040640813
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue