mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-05 03:32:37 +00:00
response 501 if not a able to restart
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user