aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext/call.cc
diff options
context:
space:
mode:
authorGravatar Noah Eisen <ncteisen@google.com>2017-04-20 15:59:35 -0700
committerGravatar Noah Eisen <ncteisen@google.com>2017-04-20 15:59:35 -0700
commita8e567574b1b8cda8a517776ba3943c5c47886f2 (patch)
tree4711d9129a25cbcdeca8192982825d4847ea826b /src/node/ext/call.cc
parent5e17e4430cebe6d1a1a96988a86eb6bd8c56fac5 (diff)
parent16309e396a7360b59fda1571bd65eb169e4e8748 (diff)
Merge branch 'master' of https://github.com/grpc/grpc into yet-another-error-refcount-bug
Diffstat (limited to 'src/node/ext/call.cc')
-rw-r--r--src/node/ext/call.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/node/ext/call.cc b/src/node/ext/call.cc
index 0f192ac90a..fe0c80e642 100644
--- a/src/node/ext/call.cc
+++ b/src/node/ext/call.cc
@@ -248,6 +248,7 @@ class SendMessageOp : public Op {
out->data.send_message.send_message = send_message;
return true;
}
+
bool IsFinalOp() { return false; }
void OnComplete(bool success) {}
@@ -264,6 +265,7 @@ class SendClientCloseOp : public Op {
EscapableHandleScope scope;
return scope.Escape(Nan::True());
}
+
bool ParseOp(Local<Value> value, grpc_op *out) { return true; }
bool IsFinalOp() { return false; }
void OnComplete(bool success) {}
@@ -501,7 +503,7 @@ void DestroyTag(void *tag) {
void Call::DestroyCall() {
if (this->wrapped_call != NULL) {
- grpc_call_destroy(this->wrapped_call);
+ grpc_call_unref(this->wrapped_call);
this->wrapped_call = NULL;
}
}