mirror of
https://github.com/pockethost/pockethost.git
synced 2025-07-01 18:32:31 +00:00
fix: instance shutdown while in unhealthy state
This commit is contained in:
parent
6fb47aaf33
commit
7c23e507fc
@ -145,7 +145,7 @@ export const instanceService = mkSingleton(
|
||||
}
|
||||
return startRequest()
|
||||
},
|
||||
shutdown: () => {
|
||||
shutdown: async () => {
|
||||
if (status !== InstanceApiStatus.Healthy) {
|
||||
throw new Error(
|
||||
`Attempt to shut down an instance request when instance is not in a healthy state.`
|
||||
|
Loading…
x
Reference in New Issue
Block a user