Skip to content

Commit 1678da7

Browse files
remove upload port from pending monitor requests
1 parent 5260a07 commit 1678da7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

arduino-ide-extension/src/node/monitor-manager.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,9 @@ export class MonitorManager extends CoreClientAware {
169169
}
170170

171171
async startQueuedServices(): Promise<void> {
172-
const queued = this.startMonitorPendingRequests;
172+
// here we remove the first item as in all likelihood it's
173+
// probably the port we used to perform an upload
174+
const queued = this.startMonitorPendingRequests.slice(1);
173175
this.startMonitorPendingRequests = [];
174176

175177
for (const [[board, port], onFinish] of queued) {

0 commit comments

Comments
 (0)