diff options
author | Muxi Yan <mxyan@google.com> | 2018-12-19 13:06:34 -0800 |
---|---|---|
committer | Muxi Yan <mxyan@google.com> | 2018-12-19 13:06:34 -0800 |
commit | 1876d0d3669147e68c64d7916082de64025e9b6f (patch) | |
tree | 04cd16ac94ed531e16f07118044511336fa5109e /src/objective-c/ProtoRPC/ProtoRPC.m | |
parent | 92123a4a333719fa3aa55b3db9f36c136e108a47 (diff) |
ProtoRPC bug
Diffstat (limited to 'src/objective-c/ProtoRPC/ProtoRPC.m')
-rw-r--r-- | src/objective-c/ProtoRPC/ProtoRPC.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/objective-c/ProtoRPC/ProtoRPC.m b/src/objective-c/ProtoRPC/ProtoRPC.m index 48a38bd35a..03e6839c5a 100644 --- a/src/objective-c/ProtoRPC/ProtoRPC.m +++ b/src/objective-c/ProtoRPC/ProtoRPC.m @@ -175,7 +175,7 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing } - (void)writeMessage:(GPBMessage *)message { - NSAssert([message isKindOfClass:[GPBMessage class]]); + NSAssert([message isKindOfClass:[GPBMessage class]], @"Parameter message must be a GPBMessage"); if (![message isKindOfClass:[GPBMessage class]]) { NSLog(@"Failed to send a message that is non-proto."); return; @@ -199,7 +199,7 @@ static NSError *ErrorForBadProto(id proto, Class expectedClass, NSError *parsing - (void)didReceiveInitialMetadata:(NSDictionary *)initialMetadata { @synchronized(self) { - if (initialMetadata != nil && [_handler respondsToSelector:@selector(initialMetadata:)]) { + if (initialMetadata != nil && [_handler respondsToSelector:@selector(didReceiveInitialMetadata:)]) { dispatch_async(_dispatchQueue, ^{ id<GRPCProtoResponseHandler> copiedHandler = nil; @synchronized(self) { |