Skip to content

Commit

Permalink
fix(adb): don't destroy the transport when a socket is cancelled
Browse files Browse the repository at this point in the history
  • Loading branch information
yume-chan committed Nov 1, 2023
1 parent 70dd341 commit d6d0306
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion libraries/adb/src/daemon/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit d6d0306

Please sign in to comment.