summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLUploadFileOperation.m
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2016-08-25 13:45:15 -0400
committerJoel Fischer <joeljfischer@gmail.com>2016-08-25 13:45:15 -0400
commitad762812898c1849be83eb4dbefcba475dfbafe1 (patch)
treedb611ff63de94e99f3ef415d0bfea7de81d1367b /SmartDeviceLink/SDLUploadFileOperation.m
parent487f3ba67e272078787565977c9398ea71833532 (diff)
downloadsdl_ios-ad762812898c1849be83eb4dbefcba475dfbafe1.tar.gz
Alter a bunch of handlers for more consistent and descriptive language
Diffstat (limited to 'SmartDeviceLink/SDLUploadFileOperation.m')
-rw-r--r--SmartDeviceLink/SDLUploadFileOperation.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/SmartDeviceLink/SDLUploadFileOperation.m b/SmartDeviceLink/SDLUploadFileOperation.m
index 7988d664e..ebdb4297c 100644
--- a/SmartDeviceLink/SDLUploadFileOperation.m
+++ b/SmartDeviceLink/SDLUploadFileOperation.m
@@ -56,7 +56,7 @@ NS_ASSUME_NONNULL_BEGIN
[self sdl_sendPutFiles:[self.class sdl_splitFile:self.fileWrapper.file] withCompletion:self.fileWrapper.completionHandler];
}
-- (void)sdl_sendPutFiles:(NSArray<SDLPutFile *> *)putFiles withCompletion:(SDLFileManagerUploadCompletion)completion {
+- (void)sdl_sendPutFiles:(NSArray<SDLPutFile *> *)putFiles withCompletion:(SDLFileManagerUploadCompletionHandler)completion {
__block BOOL stop = NO;
__block NSError *streamError = nil;
__block NSUInteger bytesAvailable = 0;
@@ -81,7 +81,7 @@ NS_ASSUME_NONNULL_BEGIN
dispatch_group_enter(putFileGroup);
__weak typeof(self) weakself = self;
[self.connectionManager sendManagerRequest:putFile
- withCompletionHandler:^(__kindof SDLRPCRequest *_Nullable request, __kindof SDLRPCResponse *_Nullable response, NSError *_Nullable error) {
+ withResponseHandler:^(__kindof SDLRPCRequest *_Nullable request, __kindof SDLRPCResponse *_Nullable response, NSError *_Nullable error) {
typeof(weakself) strongself = weakself;
// If we've already encountered an error, then just abort
// TODO: Is this the right way to handle this case? Should we just abort everything in the future? Should we be deleting what we sent? Should we have an automatic retry strategy based on what the error was?