error handling tweaks

This commit is contained in:
Geoffrey Goh
2015-11-13 00:21:29 -08:00
parent 31c93175db
commit b21d22ca45

View File

@@ -61,6 +61,7 @@ failCallback:(void (^)(NSError *err))failCallback {
if (bytesLeft) {
self.failCallback([self.outputFileStream streamError]);
[self.outputFileStream close];
[connection cancel];
}
}