Loading lib/fastboot.js +5 −2 Original line number Diff line number Diff line Loading @@ -53,7 +53,11 @@ export class FastbootDevice { * Returns whether the USB device is currently connected. */ get isConnected() { return this.device !== null; return ( this.device !== null && this.device.opened && this.device.configurations[0].interfaces[0].claimed ); } /** Loading Loading @@ -113,7 +117,6 @@ export class FastbootDevice { rejected = true; } this.device = null; if (rethrowErrors && rejected) { throw error; } Loading Loading
lib/fastboot.js +5 −2 Original line number Diff line number Diff line Loading @@ -53,7 +53,11 @@ export class FastbootDevice { * Returns whether the USB device is currently connected. */ get isConnected() { return this.device !== null; return ( this.device !== null && this.device.opened && this.device.configurations[0].interfaces[0].claimed ); } /** Loading Loading @@ -113,7 +117,6 @@ export class FastbootDevice { rejected = true; } this.device = null; if (rethrowErrors && rejected) { throw error; } Loading