Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion ui/desktop/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -593,6 +593,12 @@ const createChat = async (
);
goosedClients.set(mainWindow.id, goosedClient);

console.log('[Main] Waiting for backend server to be ready...');
const serverReady = await checkServerStatus(goosedClient);
if (!serverReady) {
throw new Error('Backend server failed to start in time');
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you remove the log statements? either this works and we dont care or it fails and it says so

// Let windowStateKeeper manage the window
mainWindowState.manage(mainWindow);

Expand Down Expand Up @@ -1059,7 +1065,6 @@ ipcMain.handle('get-goosed-host-port', async (event) => {
if (!client) {
return null;
}
await checkServerStatus(client);
return client.getConfig().baseUrl || null;
});

Expand Down
Loading