Clear cancel callback when gRPC eager call returns with state.
PiperOrigin-RevId: 317393892 Change-Id: Ife800821494dd4cc2992eec9a5470d989596a6d7
This commit is contained in:
parent
fb5a3c3c6a
commit
18c43b7bd4
@ -81,6 +81,7 @@ class GrpcEagerServiceImpl : public AsyncServiceInterface {
|
|||||||
local_impl_.RunComponentFunction(call_opts.get(), &call->request,
|
local_impl_.RunComponentFunction(call_opts.get(), &call->request,
|
||||||
&call->response,
|
&call->response,
|
||||||
[call, call_opts](const Status& s) {
|
[call, call_opts](const Status& s) {
|
||||||
|
call->ClearCancelCallback();
|
||||||
call->SendResponse(ToGrpcStatus(s));
|
call->SendResponse(ToGrpcStatus(s));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user