response 501 if not a able to restart
This commit is contained in:
parent
6387f0e85d
commit
49fb2a3376
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user