diff options
author | 2018-10-19 18:32:05 -0700 | |
---|---|---|
committer | 2018-10-19 18:32:05 -0700 | |
commit | 5e3e744d448c8cd1271cae7e8d40d3bdeaff762f (patch) | |
tree | 538785aecc00a54169ac26c6a236a2837eed6921 /src/objective-c/GRPCClient/private/GRPCChannel.m | |
parent | 17d178363dafe3aa03d348bdbbbd0c3daed9e06e (diff) |
copy configuration
Diffstat (limited to 'src/objective-c/GRPCClient/private/GRPCChannel.m')
-rw-r--r-- | src/objective-c/GRPCClient/private/GRPCChannel.m | 2 |
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]; |