Skip to content

Commit 413b01d

Browse files
fix: connected devices were sometimes reported as idle prematurely
1 parent 62eca73 commit 413b01d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Device.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ class Device {
403403
if (!this.config.rootPath) this.config = { ...this.config, rootPath: await this.getRootPath() };
404404
await this.updatePymakrConf();
405405
this.state.stale = false;
406-
this.busy.set(false);
407-
resolve();
406+
// busy could be truish as vscode could be trying to access a file
407+
this.busy.when(false).then(resolve);
408408
}
409409
});
410410

0 commit comments

Comments
 (0)