Skip to content

Commit 859072f

Browse files
author
Cynthia Jiang
committed
Use setConfigSettings function instead
1 parent ac42ced commit 859072f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

remote_config/src/ios/remote_config_ios.mm

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,10 @@ static int64_t FutureCompleteWithError(NSError *error, ReferenceCountedFutureImp
353353
::firebase::internal::kMillisecondsPerSecond);
354354
newConfigSettings.fetchTimeout = static_cast<NSTimeInterval>(
355355
settings.fetch_timeout_in_milliseconds / ::firebase::internal::kMillisecondsPerSecond);
356-
impl().configSettings = newConfigSettings;
357-
future_impl_.Complete(handle, kFutureStatusSuccess);
356+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
357+
[impl() setConfigSettings:newConfigSettings];
358+
future_impl_.Complete(handle, kFutureStatusSuccess);
359+
});
358360
return MakeFuture<void>(&future_impl_, handle);
359361
}
360362

0 commit comments

Comments
 (0)