Improve the file server shutdown logic and display the shutdown progress bar in the UI
This commit is contained in:
parent
77d2d69376
commit
e3daa09316
9 changed files with 170 additions and 75 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue