mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
refactor: code cleanup
This commit is contained in:
parent
c440e83828
commit
721b6c0da6
68 changed files with 1161 additions and 1036 deletions
|
@ -110,7 +110,7 @@ export class AdbDaemonSocketController
|
|||
}
|
||||
|
||||
async #writeChunk(data: Uint8Array, signal: AbortSignal) {
|
||||
const length = data.byteLength;
|
||||
const length = data.length;
|
||||
while (this.#availableWriteBytes < length) {
|
||||
// Only one lock is required because Web Streams API guarantees
|
||||
// that `write` is not reentrant.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue