InitialMetadata callback shouldn't be triggered with empty initialMetadata.

pull/24719/head
yulin-liang 4 years ago
parent 3a81243cbd
commit 27e6e97754
  1. 2
      src/objective-c/GRPCClient/private/GRPCCore/GRPCCallInternal.m

@ -249,7 +249,7 @@
}
- (void)issueInitialMetadata:(NSDictionary *)initialMetadata {
if (initialMetadata != nil) {
if (initialMetadata != nil && [initialMetadata count] == 0) {
// cannot directly call callback because this may not be running on manager's dispatch queue
GRPCTransportManager *copiedManager = _transportManager;
dispatch_async(copiedManager.dispatchQueue, ^{

Loading…
Cancel
Save