commit | 9558618182aa817ad5aa9885f1fe12003ee1a93e | [log] [tgz] |
---|---|---|
author | Muxi Yan <mxyan@google.com> | Tue Nov 06 11:37:41 2018 -0800 |
committer | Muxi Yan <mxyan@google.com> | Tue Nov 06 11:37:41 2018 -0800 |
tree | 892f8177407eab0fbd3462de592174925615e40b | |
parent | 24265b03ac5c6ace73916f3bc3a847abf1c64c33 [diff] |
Check if call is cancelled
diff --git a/src/objective-c/GRPCClient/GRPCCall.m b/src/objective-c/GRPCClient/GRPCCall.m index 5ce3613..1338c1e 100644 --- a/src/objective-c/GRPCClient/GRPCCall.m +++ b/src/objective-c/GRPCClient/GRPCCall.m
@@ -237,7 +237,9 @@ - (void)writeData:(NSData *)data { dispatch_async(_dispatchQueue, ^{ - [self->_pipe writeValue:data]; + if (self->_call) { + [self->_pipe writeValue:data]; + } }); }