This commit is contained in:
Vladimir Mandic
2023-07-24 19:52:50 -04:00
parent 5f96c35ab5
commit 7bee313bb3
4 changed files with 22 additions and 7 deletions
+2 -2
View File
@@ -892,8 +892,8 @@ def restart_server(restart=True):
demo.server.close()
demo.fns = []
# os._exit(0)
except Exception:
pass
except Exception as e:
log.error(f'Server shutdown error: {e}')
if restart:
log.info('Server will restart')