diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 9d81dcf6e6e..46cd5a4f227 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m @@ -260,7 +260,7 @@ const char *kCFStreamVarName = "grpc_cfstream"; GRPCAssert(self->_started, NSInternalInconsistencyException, @"Call not started."); GRPCAssert(!self->_canceled, NSInternalInconsistencyException, @"Call arleady canceled."); GRPCAssert(!self->_finished, NSInternalInconsistencyException, @"Call already half-closed."); - if (self->_call) { + if (self->_pipe) { [self->_pipe writesFinishedWithError:nil]; } self->_pipe = nil;