Commit 49fb2a33 authored by w-e-w's avatar w-e-w

response 501 if not a able to restart

parent 6387f0e8
......@@ -727,6 +727,7 @@ class Api:
def restart_webui(self):
if restart.is_restartable():
restart.restart_program()
return Response(status_code=501)
def terminate_webui(request):
shared.state.server_command = "stop"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment