diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-10-22 16:43:43 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-10-22 16:43:43 -0700 |
commit | d8cfd96fb2ed7b61b6066284ba1647d2aff49a8a (patch) | |
tree | f82e1e6c22239978ead8f69a4d981a3f6f63fb6e /include/grpcpp/impl/codegen/callback_common.h | |
parent | b358ef85dc5a19c43929002b96cabc281b04d8bd (diff) |
Adding tests using the callback API
Diffstat (limited to 'include/grpcpp/impl/codegen/callback_common.h')
-rw-r--r-- | include/grpcpp/impl/codegen/callback_common.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/grpcpp/impl/codegen/callback_common.h b/include/grpcpp/impl/codegen/callback_common.h index ca2f867d04..3f586b2394 100644 --- a/include/grpcpp/impl/codegen/callback_common.h +++ b/include/grpcpp/impl/codegen/callback_common.h @@ -94,7 +94,10 @@ class CallbackWithStatusTag void Run(bool ok) { void* ignored = ops_; - GPR_CODEGEN_ASSERT(ops_->FinalizeResult(&ignored, &ok)); + if (!ops_->FinalizeResult(&ignored, &ok)) { + // The tag was swallowed + return; + } GPR_CODEGEN_ASSERT(ignored == ops_); // Last use of func_ or status_, so ok to move them out |