Skip to content

Commit 7295887

Browse files
author
Akos Kitta
committed
fixed broken promise when reconnecting on baudRate changes.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
1 parent 6b2046e commit 7295887

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arduino-ide-extension/src/browser/monitor/monitor-connection.ts

+1
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ export class MonitorConnection {
188188
// First, disconnect if connected.
189189
if (this.connected) {
190190
this.disconnect().then(() => resolve());
191+
return;
191192
}
192193
resolve();
193194
}).then(() => {

0 commit comments

Comments
 (0)