diff --git a/src-electron/ide-integration/studio-rest-api.ts b/src-electron/ide-integration/studio-rest-api.ts index f33e8cc51e..56a6fe5bc9 100644 --- a/src-electron/ide-integration/studio-rest-api.ts +++ b/src-electron/ide-integration/studio-rest-api.ts @@ -260,9 +260,11 @@ function httpPostComponentUpdate( function initIdeIntegration(db: dbTypes.DbType, studioPort: number) { studioHttpPort = studioPort - ucComponentStateReportId = setInterval(() => { - sendUcComponentStateReport(db) - }, UC_COMPONENT_STATE_REPORTING_INTERVAL_ID) + if (studioPort) { + ucComponentStateReportId = setInterval(() => { + sendUcComponentStateReport(db) + }, UC_COMPONENT_STATE_REPORTING_INTERVAL_ID) + } } /** diff --git a/src-electron/util/args.ts b/src-electron/util/args.ts index 25b2a927d7..eba7c5e6a1 100644 --- a/src-electron/util/args.ts +++ b/src-electron/util/args.ts @@ -96,7 +96,7 @@ export function processCommandLineArguments(argv: string[]) { .option('studioHttpPort', { desc: "Port used for integration with Silicon Labs Simplicity Studio's internal HTTP server", type: 'number', - default: 9000, + default: -1, }) .option('zapFile', { desc: 'input .zap file to read in. You can also specify them without an option, directly.',