mirror of https://github.com/grpc/grpc-node.git
Call ref/unref, bugfixes
This commit is contained in:
parent
97cbda3c41
commit
4d064019fe
|
@ -520,7 +520,7 @@ Call::Call(grpc_call *call) : wrapped_call(call),
|
||||||
|
|
||||||
Call::~Call() {
|
Call::~Call() {
|
||||||
if (wrapped_call != NULL) {
|
if (wrapped_call != NULL) {
|
||||||
grpc_call_destroy(wrapped_call);
|
grpc_call_unref(wrapped_call);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -568,7 +568,7 @@ void Call::CompleteBatch(bool is_final_op) {
|
||||||
}
|
}
|
||||||
this->pending_batches--;
|
this->pending_batches--;
|
||||||
if (this->has_final_op_completed && this->pending_batches == 0) {
|
if (this->has_final_op_completed && this->pending_batches == 0) {
|
||||||
grpc_call_destroy(this->wrapped_call);
|
grpc_call_unref(this->wrapped_call);
|
||||||
this->wrapped_call = NULL;
|
this->wrapped_call = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue