diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/surface/call.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/surface/call.c b/src/core/surface/call.c index b2033f3dc0..cfce943794 100644 --- a/src/core/surface/call.c +++ b/src/core/surface/call.c @@ -375,6 +375,7 @@ static void unlock(grpc_call *call) { sizeof(completed_requests)); call->num_completed_requests = 0; call->completing = 1; + grpc_call_internal_ref(call); } if (!call->sending) { @@ -403,6 +404,7 @@ static void unlock(grpc_call *call) { lock(call); call->completing = 0; unlock(call); + grpc_call_internal_unref(call, 0); } } |