Skip to content

Commit 85909e5

Browse files
ksuthertiennou
authored andcommitted
Remove extra calls to readDataToEndOfFile that were causing exceptions
1 parent 0943934 commit 85909e5

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Classes/Util/PBTask.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,6 @@ - (void)performTaskOnQueue:(dispatch_queue_t)queue terminationHandler:(void (^)(
116116

117117
PBTaskLog(@"task %p: exit != 0", weakSelf);
118118

119-
[(NSMutableData *)weakSelf.standardOutputData appendData:[[task.standardOutput fileHandleForReading] readDataToEndOfFile]];
120119
NSString *outputString = [[NSString alloc] initWithData:weakSelf.standardOutputData encoding:NSUTF8StringEncoding];
121120
weakSelf.standardOutputData = nil;
122121

@@ -189,7 +188,6 @@ - (void)performTaskOnQueue:(dispatch_queue_t)queue completionHandler:(void (^)(N
189188
@synchronized (self) {
190189
PBTaskLog(@"task %p: completed, removing read handler", self);
191190
[self.task.standardOutput fileHandleForReading].readabilityHandler = nil;
192-
[(NSMutableData *)self.standardOutputData appendData:[[self.task.standardOutput fileHandleForReading] readDataToEndOfFile]];
193191
}
194192

195193
completionHandler(self.standardOutputData, nil);

0 commit comments

Comments
 (0)