mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
fix(adb): don't destroy the transport when a socket is cancelled
This commit is contained in:
parent
70dd341862
commit
d6d03061da
1 changed files with 8 additions and 1 deletions
|
@ -114,7 +114,14 @@ export class AdbDaemonSocketController
|
|||
return;
|
||||
}
|
||||
|
||||
await this.#readableController.enqueue(data);
|
||||
try {
|
||||
await this.#readableController.enqueue(data);
|
||||
} catch (e) {
|
||||
if (this.#readableController.abortSignal.aborted) {
|
||||
return;
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
ack() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue