Fix ASSERT condition

pull/501/head
Craig Tiller 10 years ago
parent c8296be777
commit f95487fd7c
  1. 2
      src/cpp/client/client_unary_call.cc

@ -57,7 +57,7 @@ Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method,
buf.AddClientSendClose(); buf.AddClientSendClose();
buf.AddClientRecvStatus(&context->trailing_metadata_, &status); buf.AddClientRecvStatus(&context->trailing_metadata_, &status);
call.PerformOps(&buf); call.PerformOps(&buf);
GPR_ASSERT(cq.Pluck(&buf) && (buf.got_message || !status.IsOk())); GPR_ASSERT((cq.Pluck(&buf) && buf.got_message) || !status.IsOk());
return status; return status;
} }

Loading…
Cancel
Save