do not await for attached boards.

Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
Akos Kitta
2019-07-31 15:24:19 +02:00
committed by jbicker
parent 502e9042ad
commit ec50ea673c
3 changed files with 2 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ export class BoardsServiceClientImpl implements BoardsServiceClient {
const { selectedPort, selectedBoard } = this.boardsConfig;
this.onAttachedBoardsChangedEmitter.fire(event);
// Dynamically unset the port if the selected board was an attached one and we detached it.
if (!!selectedPort && detachedBoards.indexOf(selectedPort) === -1) {
if (!!selectedPort && detachedBoards.indexOf(selectedPort) !== -1) {
this.boardsConfig = {
selectedBoard,
selectedPort: undefined