Skip to content

Commit 0f93295

Browse files
authored
Merge pull request #5 from gabriellanata/patch-1
Fix AsyncBytes buffer finish
2 parents 9500628 + 96fa2c1 commit 0f93295

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Subprocess/Subprocess+AsyncBytes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ extension Subprocess {
4949
self.buffer = try await self.fileDescriptor.read(
5050
upToLength: Subprocess.readBufferSize)
5151
self.currentPosition = 0
52-
if self.buffer.count < Subprocess.readBufferSize {
52+
if self.buffer.isEmpty {
5353
self.finished = true
5454
}
5555
} catch {

0 commit comments

Comments
 (0)