Skip to content

Commit 0e185d7

Browse files
authored
Merge pull request #104 from mangerlahn/feature/fix-background-cpu-usage
Fix hard background CPU pressure
2 parents 899ca98 + 4a894d4 commit 0e185d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Classes/Util/PBEasyPipe.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ - (void)setDataOutput:(nonnull NSMutableData *)dataOutput {
3737

3838
fileHandle.readabilityHandler = ^(NSFileHandle * _Nonnull fileHandle) {
3939
[dataOutput appendData:fileHandle.availableData];
40+
[fileHandle closeFile];
4041
};
4142
}
4243

0 commit comments

Comments
 (0)