Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 254b1c0d authored by Simon Chan's avatar Simon Chan
Browse files

fix(adb): fix sync socket buffer

parent 14c52634
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ export class AdbSyncSocketLocked implements StructAsyncDeserializeStream {
                    this._writeBufferAvailable -= available;
                    return;
                }
            }

            while (available >= this._bufferCapacity) {
                const end = offset + this._bufferCapacity;
@@ -86,7 +87,6 @@ export class AdbSyncSocketLocked implements StructAsyncDeserializeStream {
                this._writeBufferOffset = available;
                this._writeBufferAvailable -= available;
            }
            }
        } finally {
            this._writeLock.notifyOne();
        }