fix(server): trying to connect to web socket while in setup

This commit is contained in:
Elian Doran
2026-03-25 20:56:14 +02:00
parent 680ac80526
commit 2afd9b474c

View File

@@ -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