aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c
diff options
context:
space:
mode:
authorGravatar murgatroid99 <mlumish@google.com>2015-04-27 13:15:37 -0700
committerGravatar murgatroid99 <mlumish@google.com>2015-04-27 13:15:37 -0700
commit92552fc664ae287ccb1001ef8eaf08d8c54ba023 (patch)
tree4c81837edffe2e7dd0d29d6131371f6cbca30e22 /src/objective-c
parente08a9c061a11142a96ef6871144958938d2e7487 (diff)
Re-added completion_queue_destroy call
Diffstat (limited to 'src/objective-c')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCCompletionQueue.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCCompletionQueue.m b/src/objective-c/GRPCClient/private/GRPCCompletionQueue.m
index adee053406..cae21b7807 100644
--- a/src/objective-c/GRPCClient/private/GRPCCompletionQueue.m
+++ b/src/objective-c/GRPCClient/private/GRPCCompletionQueue.m
@@ -54,7 +54,7 @@
// anymore (i.e. on self dealloc). So the block would never end if it
// retained self.
grpc_completion_queue *unmanagedQueue = _unmanagedQueue;
-
+
// Start a loop on a concurrent queue to read events from the completion
// queue and dispatch each.
static dispatch_once_t initialization;
@@ -73,6 +73,7 @@
handler(event->data.op_complete);
break;
case GRPC_QUEUE_SHUTDOWN:
+ grpc_completion_queue_destroy(unmanagedQueue);
return;
default:
[NSException raise:@"Unrecognized completion type" format:@""];