Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit b21d22c

Browse files
committed
error handling tweaks
1 parent 31c9317 commit b21d22c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CodePushDownloadHandler.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data {
6161
if (bytesLeft) {
6262
self.failCallback([self.outputFileStream streamError]);
6363
[self.outputFileStream close];
64+
[connection cancel];
6465
}
6566
}
6667

0 commit comments

Comments
 (0)