summaryrefslogtreecommitdiff
path: root/grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h')
-rw-r--r--grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h b/grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h
index 370d5196..7fde1edb 100644
--- a/grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h
+++ b/grpc/spm-cpp-include/grpcpp/impl/codegen/call_op_set.h
@@ -878,6 +878,9 @@ class CallOpSet : public CallOpSetInterface,
interceptor_methods_(InterceptorBatchMethodsImpl()) {}
CallOpSet& operator=(const CallOpSet& other) {
+ if (&other == this) {
+ return *this;
+ }
core_cq_tag_ = this;
return_tag_ = this;
call_ = other.call_;