diff options
author | 2015-02-05 08:55:20 -0800 | |
---|---|---|
committer | 2015-02-05 08:55:20 -0800 | |
commit | b1d99bf097d2f6a7d7684f57ff5690c9ba8180e0 (patch) | |
tree | eb27da3d45c3fa3027ec04abcb6ca913d6331330 /src/core/surface/call.c | |
parent | ebf94bf558b9c0f8900f39b46379d527f862ffa2 (diff) |
Better fix for segfault
Diffstat (limited to 'src/core/surface/call.c')
-rw-r--r-- | src/core/surface/call.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index 95d8dfd876..c68ce5a6a8 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -336,8 +336,8 @@ static void unlock(grpc_call *call) { int num_completed_requests = call->num_completed_requests; int need_more_data = call->need_more_data && - !is_op_live(call, GRPC_IOREQ_SEND_INITIAL_METADATA) && - call->request_set[GRPC_IOREQ_SEND_INITIAL_METADATA] != REQSET_EMPTY; + !call->sending && + call->write_state >= WRITE_STATE_STARTED; int i; if (need_more_data) { |