Add comment on clearing GRPCCall2._handler

pull/16190/head
Muxi Yan 6 years ago
parent 5d16c2ff92
commit 92e81c80ef
  1. 5
      src/objective-c/GRPCClient/GRPCCall.m

@ -167,6 +167,9 @@ const char *kCFStreamVarName = "grpc_cfstream";
[self issueInitialMetadata:headers]; [self issueInitialMetadata:headers];
} }
[self issueClosedWithTrailingMetadata:self->_call.responseTrailers error:errorOrNil]; [self issueClosedWithTrailingMetadata:self->_call.responseTrailers error:errorOrNil];
// Clean up _handler so that no more responses are reported to the handler.
self->_handler = nil;
} }
}); });
}]; }];
@ -193,6 +196,8 @@ const char *kCFStreamVarName = "grpc_cfstream";
}]]; }]];
} }
}); });
// Clean up _handler so that no more responses are reported to the handler.
self->_handler = nil; self->_handler = nil;
} }
}); });

Loading…
Cancel
Save