Skip to content

Commit

Permalink
Added timeout if connected wasn't made
Browse files Browse the repository at this point in the history
  • Loading branch information
MickeyUK committed Oct 20, 2023
1 parent ead7659 commit b76f6a6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,13 @@ function createWindow() {
// Some APIs can only be used after this event occurs.
app.whenReady().then(() => {

// Timeout to check if soda is connected (10 seconds)
setTimeout(() => {
if (!sodaConnected) {
app.quit();
}
}, 10000);

// Create the main application window
createWindow();

Expand Down

0 comments on commit b76f6a6

Please sign in to comment.