Skip to content

Commit 9585991

Browse files
Merge branch '1032-uploads-failing-with-monitor-open' of https://github.com/arduino/arduino-ide into 1032-uploads-failing-with-monitor-open
2 parents cc12bc0 + 209ac69 commit 9585991

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

arduino-ide-extension/src/browser/monitor-manager-proxy-client-impl.ts

+6
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,12 @@ export class MonitorManagerProxyClientImpl
135135
this.onBoardsConfigChanged =
136136
this.boardsServiceProvider.onBoardsConfigChanged(
137137
async ({ selectedBoard, selectedPort }) => {
138+
if (
139+
typeof selectedBoard === 'undefined' ||
140+
typeof selectedPort === 'undefined'
141+
)
142+
return;
143+
138144
// a board is plugged and it's different from the old connected board
139145
if (
140146
selectedBoard?.fqbn !==

0 commit comments

Comments
 (0)