diff --git a/src/stores/gateway.ts b/src/stores/gateway.ts index dcb2b9b..910f336 100644 --- a/src/stores/gateway.ts +++ b/src/stores/gateway.ts @@ -97,6 +97,9 @@ function maybeLoadSessions( state: { loadSessions: () => Promise }, force = false, ): void { + const { status } = useGatewayStore.getState(); + if (status.gatewayReady === false) return; + const now = Date.now(); if (!force && now - lastLoadSessionsAt < LOAD_SESSIONS_MIN_INTERVAL_MS) return; lastLoadSessionsAt = now;