Support client restart without updating
This commit is contained in:
parent
77aa23a375
commit
5aab10fab2
3 changed files with 17 additions and 16 deletions
|
@ -960,7 +960,9 @@ class UiWebsocket(object):
|
|||
res = sys.modules["main"].file_server.openport()
|
||||
self.response(to, res)
|
||||
|
||||
def actionServerShutdown(self, to):
|
||||
def actionServerShutdown(self, to, restart=False):
|
||||
if restart:
|
||||
sys.modules["main"].restart_after_shutdown = True
|
||||
sys.modules["main"].file_server.stop()
|
||||
sys.modules["main"].ui_server.stop()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue