diff options
author | Craig Tiller <ctiller@google.com> | 2016-06-23 14:37:30 -0700 |
---|---|---|
committer | Craig Tiller <ctiller@google.com> | 2016-06-23 14:37:30 -0700 |
commit | d4d4c6f6f62a547da9136f57ddd6406facaf4ce5 (patch) | |
tree | e3029e9bb6276fb3ad38b571352c1ecc02df66c8 /src | |
parent | 733e3fc209f78695896b2d721069afad866cd2f7 (diff) |
Fix comparison
Diffstat (limited to 'src')
-rw-r--r-- | src/core/lib/transport/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/lib/transport/transport.c b/src/core/lib/transport/transport.c index 67920b0527..79a20e1262 100644 --- a/src/core/lib/transport/transport.c +++ b/src/core/lib/transport/transport.c @@ -192,7 +192,7 @@ static void add_error(grpc_transport_stream_op *op, grpc_error **which, void grpc_transport_stream_op_add_cancellation(grpc_transport_stream_op *op, grpc_status_code status) { GPR_ASSERT(status != GRPC_STATUS_OK); - if (op->cancel_error == GRPC_STATUS_OK) { + if (op->cancel_error == GRPC_ERROR_NONE) { op->cancel_error = grpc_error_set_int(GRPC_ERROR_CANCELLED, GRPC_ERROR_INT_GRPC_STATUS, status); op->close_error = GRPC_ERROR_NONE; |