From 2afd9b474ca3f14cf344bafc16a124fc71e6d150 Mon Sep 17 00:00:00 2001 From: Elian Doran Date: Wed, 25 Mar 2026 20:56:14 +0200 Subject: [PATCH] fix(server): trying to connect to web socket while in setup --- apps/client/src/services/ws.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/client/src/services/ws.ts b/apps/client/src/services/ws.ts index d22292d719..e014974761 100644 --- a/apps/client/src/services/ws.ts +++ b/apps/client/src/services/ws.ts @@ -254,7 +254,6 @@ function connectWebSocket() { } async function sendPing() { - console.log("Got ws", ws); if (!ws) { // In standalone mode, there's no WebSocket — nothing to ping. return; @@ -287,6 +286,7 @@ async function sendPing() { setTimeout(() => { if (glob.device === "print") return; + if (!glob.dbInitialized) return; if (glob.isStandalone) { // In standalone mode, listen for messages from the local worker via custom event