Merge pull request #13180 from muxi/fix-objc-msan

Fix threading problem in gRPC ObjC
pull/15533/head
Muxi Yan 7 years ago committed by GitHub
commit a4f7d99631
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m

@ -268,9 +268,11 @@ static NSString *const kBearerPrefix = @"Bearer ";
// method.
// TODO(jcanizales): Rename to readResponseIfNotPaused.
- (void)startNextRead {
@synchronized(self) {
if (self.state == GRXWriterStatePaused) {
return;
}
}
dispatch_async(_callQueue, ^{
__weak GRPCCall *weakSelf = self;

Loading…
Cancel
Save