mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-07-12 22:06:34 +00:00
fixed broken promise when reconnecting on baudRate
changes.
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
6b2046e090
commit
729588770e
@ -188,6 +188,7 @@ export class MonitorConnection {
|
|||||||
// First, disconnect if connected.
|
// First, disconnect if connected.
|
||||||
if (this.connected) {
|
if (this.connected) {
|
||||||
this.disconnect().then(() => resolve());
|
this.disconnect().then(() => resolve());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
resolve();
|
resolve();
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user