forked from extern/easydiffusion
Forgot to update UI if failed to get new server state
This commit is contained in:
parent
982b5221b1
commit
2edc06c662
@ -290,6 +290,7 @@ async function healthCheck() {
|
|||||||
serverState = await res.json()
|
serverState = await res.json()
|
||||||
if (typeof serverState !== 'object' || typeof serverState.status !== 'string') {
|
if (typeof serverState !== 'object' || typeof serverState.status !== 'string') {
|
||||||
serverState = {'status': 'Offline', 'time': Date.now()}
|
serverState = {'status': 'Offline', 'time': Date.now()}
|
||||||
|
setServerStatus('error', 'offline')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
// Set status
|
// Set status
|
||||||
|
Loading…
Reference in New Issue
Block a user