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

@ -131,10 +131,10 @@ class FileServerPlugin(object):
gevent.spawn(self.local_announcer.start)
return super(FileServerPlugin, self).start(*args, **kwargs)
def stop(self):
def stop(self, ui_websocket=None):
if self.local_announcer:
self.local_announcer.stop()
res = super(FileServerPlugin, self).stop()
res = super(FileServerPlugin, self).stop(ui_websocket=ui_websocket)
return res