Skip to content

Commit 75f79d1

Browse files
authored
[FIX] Should not start download queue when launched in CLI mode (#3161)
Co-authored-by: Flavio F Lima <[email protected]>
1 parent f5074b9 commit 75f79d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/backend/main.ts

+6
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,12 @@ ipcMain.once('loadingScreenReady', () => {
446446
ipcMain.once('frontendReady', () => {
447447
logInfo('Frontend Ready', LogPrefix.Backend)
448448
handleProtocol([openUrlArgument, ...process.argv])
449+
450+
// skip the download queue if we are running in CLI mode
451+
if (isCLINoGui) {
452+
return
453+
}
454+
449455
setTimeout(() => {
450456
logInfo('Starting the Download Queue', LogPrefix.Backend)
451457
initQueue()

0 commit comments

Comments
 (0)