Skip to content

Commit

Permalink
Merge pull request #42 from artifacts/feature/send_fail_on_write_error
Browse files Browse the repository at this point in the history
an app is not allowed to write data on disk when device lock screen i…
  • Loading branch information
sgrimme committed Apr 20, 2016
2 parents e1b7852 + f6d1d45 commit 5c64892
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/shared/AFDownloadOperation.m
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
@catch (NSException *exception) {
NSLog(@"ERROR: DownloadOperation failed with exception : %@",exception);
[self finish];
[self.cacheableItem sendFailSignalToClientItems];
return;
}
@finally {
}
Expand Down

0 comments on commit 5c64892

Please sign in to comment.