fix(adb): don't destroy the transport when a socket is cancelled

This commit is contained in:
Simon Chan 2023-11-01 16:40:39 +08:00
parent 70dd341862
commit d6d03061da
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD

View file

@ -114,7 +114,14 @@ export class AdbDaemonSocketController
return; return;
} }
await this.#readableController.enqueue(data); try {
await this.#readableController.enqueue(data);
} catch (e) {
if (this.#readableController.abortSignal.aborted) {
return;
}
throw e;
}
} }
ack() { ack() {