@@ -700,6 +700,8 @@ - (FIRRemoteConfigSettings *)configSettings {
700700 dispatch_sync (_queue, ^{
701701 minimumFetchInterval = self->_settings .minimumFetchInterval ;
702702 fetchTimeout = self->_settings .fetchTimeout ;
703+ // The NSURLSession needs to be recreated whenever the fetch timeout may be updated.
704+ [_configFetch recreateNetworkSession ];
703705 });
704706 FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000066" ,
705707 @" Successfully read configSettings. Minimum Fetch Interval:%f , "
@@ -708,8 +710,6 @@ - (FIRRemoteConfigSettings *)configSettings {
708710 FIRRemoteConfigSettings *settings = [[FIRRemoteConfigSettings alloc ] init ];
709711 settings.minimumFetchInterval = minimumFetchInterval;
710712 settings.fetchTimeout = fetchTimeout;
711- // / The NSURLSession needs to be recreated whenever the fetch timeout may be updated.
712- [_configFetch recreateNetworkSession ];
713713 return settings;
714714}
715715
@@ -721,7 +721,7 @@ - (void)setConfigSettings:(FIRRemoteConfigSettings *)configSettings {
721721
722722 self->_settings .minimumFetchInterval = configSettings.minimumFetchInterval ;
723723 self->_settings .fetchTimeout = configSettings.fetchTimeout ;
724- // / The NSURLSession needs to be recreated whenever the fetch timeout may be updated.
724+ // The NSURLSession needs to be recreated whenever the fetch timeout may be updated.
725725 [self ->_configFetch recreateNetworkSession ];
726726 FIRLogDebug (kFIRLoggerRemoteConfig , @" I-RCN000067" ,
727727 @" Successfully set configSettings. Minimum Fetch Interval:%f , "
0 commit comments