fixed server shutdown

This commit is contained in:
uh_wot 2020-05-15 15:42:47 +02:00
parent 59ed51e14f
commit 12794b41b4

View file

@ -70,8 +70,7 @@ def landing():
@server.route('/shutdown')
def closing():
app.shutdown(interface=socket_interface)
func = request.environ.get('werkzeug.server.shutdown')
func()
socketio.stop()
return 'server closed'
serverwide_arl = "--serverwide-arl" in sys.argv