aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/private/GRPCChannel.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <mxyan@google.com>2018-10-19 18:32:05 -0700
committerGravatar Muxi Yan <mxyan@google.com>2018-10-19 18:32:05 -0700
commit5e3e744d448c8cd1271cae7e8d40d3bdeaff762f (patch)
tree538785aecc00a54169ac26c6a236a2837eed6921 /src/objective-c/GRPCClient/private/GRPCChannel.m
parent17d178363dafe3aa03d348bdbbbd0c3daed9e06e (diff)
copy configuration
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.m')
-rw-r--r--src/objective-c/GRPCClient/private/GRPCChannel.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/objective-c/GRPCClient/private/GRPCChannel.m b/src/objective-c/GRPCClient/private/GRPCChannel.m
index 3e4db83765..6bd852fd0d 100644
--- a/src/objective-c/GRPCClient/private/GRPCChannel.m
+++ b/src/objective-c/GRPCClient/private/GRPCChannel.m
@@ -220,7 +220,7 @@ NSTimeInterval kChannelDestroyDelay = 30;
configuration:(GRPCChannelConfiguration *)configuration {
if ((self = [super init])) {
_unmanagedChannel = unmanagedChannel;
- _configuration = configuration;
+ _configuration = [configuration copy];
_channelRef = [[GRPCChannelRef alloc] initWithDestroyDelay:kChannelDestroyDelay
destroyChannelCallback:^{
[self destroyChannel];