Improve the file server shutdown logic and display the shutdown progress bar in the UI

This commit is contained in:
Vadim Ushakov 2021-10-22 00:30:42 +07:00
parent 77d2d69376
commit e3daa09316
9 changed files with 170 additions and 75 deletions

View file

@ -1187,7 +1187,7 @@ class UiWebsocket(object):
return False
if restart:
main.restart_after_shutdown = True
main.file_server.stop()
main.file_server.stop(ui_websocket=self)
main.ui_server.stop()
if restart: