mirror of
https://github.com/immich-app/immich.git
synced 2026-02-20 02:00:11 -05:00
fix: logic error causing infinite loop
This commit is contained in:
parent
86b7b1c44d
commit
ca116caafb
@ -34,8 +34,7 @@ export const loadMaintenanceAuth = async () => {
|
||||
};
|
||||
|
||||
export const loadMaintenanceStatus = async () => {
|
||||
let loaded = false;
|
||||
while (!loaded) {
|
||||
while (true) {
|
||||
try {
|
||||
const status = await maintenanceStatus();
|
||||
maintenanceStore.status.set(status);
|
||||
@ -45,6 +44,8 @@ export const loadMaintenanceStatus = async () => {
|
||||
isMaintenanceMode: false,
|
||||
});
|
||||
}
|
||||
|
||||
break;
|
||||
} catch (error) {
|
||||
const status = (error as { status: number })?.status;
|
||||
if (status && status >= 500 && status < 600) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user