diff --git a/apps/app/layout/app.svelte b/apps/app/layout/app.svelte index ba65594..e1d8e6e 100644 --- a/apps/app/layout/app.svelte +++ b/apps/app/layout/app.svelte @@ -137,16 +137,15 @@ ws.onclose = (e) => { console.log("Socket is closed. Reconnecting...", e.reason) setTimeout(() => { - if (retries == 3) { - sessionStorage.clear() - location.reload() + if (retries == 10) { + retries = 0 } connectToWSServer() console.log(`Reconnecting... (Retry #${retries + 1})`) retries++ - }, 1000) + }, 1000 * retries) } } diff --git a/packages/ui/navigation/desktopLoading.svelte b/packages/ui/navigation/desktopLoading.svelte index 4df87d3..c72a381 100644 --- a/packages/ui/navigation/desktopLoading.svelte +++ b/packages/ui/navigation/desktopLoading.svelte @@ -12,6 +12,9 @@
  • Make sure the Cores Service is running:
  • +
  • + Restart Cores: +
  • @@ -24,6 +27,11 @@ await invoke("start_service") } + const reload = () => { + sessionStorage.clear() + location.reload() + } + onMount(async () => { try { // Check if service is running diff --git a/packages/ui/navigation/loading.svelte b/packages/ui/navigation/loading.svelte index 65e91ef..196ce5c 100644 --- a/packages/ui/navigation/loading.svelte +++ b/packages/ui/navigation/loading.svelte @@ -6,15 +6,16 @@

    Loading...

    -
    +