copy configuration

pull/16190/head
Muxi Yan 6 years ago
parent 17d178363d
commit 5e3e744d44
  1. 2
      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];

Loading…
Cancel
Save