diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/channel/client_channel.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/core/channel/client_channel.c b/src/core/channel/client_channel.c index 61fc4222d1..1eab87d714 100644 --- a/src/core/channel/client_channel.c +++ b/src/core/channel/client_channel.c @@ -252,10 +252,8 @@ static grpc_iomgr_closure *merge_into_waiting_op( call_data *calld = elem->call_data; grpc_iomgr_closure *consumed_op = NULL; grpc_transport_stream_op *waiting_op = &calld->waiting_op; - GPR_ASSERT((waiting_op->send_ops == NULL) != (new_op->send_ops == NULL) || - waiting_op->send_ops == NULL); - GPR_ASSERT((waiting_op->recv_ops == NULL) != (new_op->recv_ops == NULL) || - waiting_op->recv_ops == NULL); + GPR_ASSERT((waiting_op->send_ops != NULL) + (new_op->send_ops != NULL) <= 1); + GPR_ASSERT((waiting_op->recv_ops != NULL) + (new_op->recv_ops != NULL) <= 1); if (new_op->send_ops != NULL) { waiting_op->send_ops = new_op->send_ops; waiting_op->is_last_send = new_op->is_last_send; |