fixed broken promise when reconnecting on baudRate changes.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta 2019-12-06 13:46:13 +01:00
parent 6b2046e090
commit 729588770e

View File

@ -188,6 +188,7 @@ export class MonitorConnection {
// First, disconnect if connected.
if (this.connected) {
this.disconnect().then(() => resolve());
return;
}
resolve();
}).then(() => {