diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 2186ea42424..15369a67190 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -107,10 +107,10 @@ _completionQueue = [GRPCCompletionQueue completionQueue]; _channel = [GRPCChannel channelToHost:host]; - - _wrappedCall = [[GRPCWrappedCall alloc] initWithChannel:_channel - method:method.HTTP2Path - host:host]; + + _wrappedCall = [[GRPCWrappedCall alloc] initWithChannel:_channel + method:method.HTTP2Path + host:host]; // Serial queue to invoke the non-reentrant methods of the grpc_call object. _callQueue = dispatch_queue_create("org.grpc.call", NULL); @@ -134,7 +134,7 @@ - (void)cancelCall { // Can be called from any thread, any number of times. - [_wrappedCall cancel]; + [_wrappedCall cancel]; } - (void)cancel { @@ -175,6 +175,7 @@ dispatch_async(_callQueue, ^{ [weakSelf startReadWithHandler:^(grpc_byte_buffer *message) { if (message == NULL) { + // No more messages from the server return; } NSData *data = [NSData grpc_dataWithByteBuffer:message]; diff --git a/src/objective-c/examples/Sample/Podfile.lock b/src/objective-c/examples/Sample/Podfile.lock index ccf5aa0f06b..be1e90216f9 100644 --- a/src/objective-c/examples/Sample/Podfile.lock +++ b/src/objective-c/examples/Sample/Podfile.lock @@ -41,4 +41,4 @@ SPEC CHECKSUMS: RemoteTest: 021a51c04d5795f286b379ca5ef14d0be5b2fb9b Route_guide: a277da8eef182774abb050d7b81109f5878f8652 -COCOAPODS: 0.36.0 +COCOAPODS: 0.36.4