Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay GDTCORUploadCoordinator timer initial run
If an upload coordinator gets created during `+load` calls, it can end up running its immediately, while +load calls are still running. It's generally a bad idea to be splitting off threads while +load calls are still running. The upload coordinator checks every 30 seconds, and doesn't really need to run right away. Since it's easy to transitively create an upload coordinator from other calls that happen during +load, we'll just push off the initial run of the timer slightly. That makes it less likely to interfere (or deadlock) with other load calls. See firebase#7171 for an example of a problem solved by this change.
- Loading branch information