Check if call is cancelled

pull/16190/head
Muxi Yan 6 years ago
parent 24265b03ac
commit 9558618182
  1. 2
      src/objective-c/GRPCClient/GRPCCall.m

@ -237,7 +237,9 @@ const char *kCFStreamVarName = "grpc_cfstream";
- (void)writeData:(NSData *)data { - (void)writeData:(NSData *)data {
dispatch_async(_dispatchQueue, ^{ dispatch_async(_dispatchQueue, ^{
if (self->_call) {
[self->_pipe writeValue:data]; [self->_pipe writeValue:data];
}
}); });
} }

Loading…
Cancel
Save