Browse Source

Update packages/transport-web-serial/src/transport.ts

Co-authored-by: Copilot <[email protected]>
pull/790/head
Jeremy Gallant 11 months ago
committed by GitHub
parent
commit
0fc4a6ee79
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      packages/transport-web-serial/src/transport.ts

2
packages/transport-web-serial/src/transport.ts

@ -163,7 +163,7 @@ export class TransportWebSerial implements Types.Transport {
}
// Cancel any remaining streams
if (this._fromDevice && !this._fromDevice.locked) {
if (this._fromDevice && this._fromDevice.locked) {
try {
await this._fromDevice.cancel();
} catch {

Loading…
Cancel
Save