We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5637c4 commit 3862a56Copy full SHA for 3862a56
FirebaseDatabase/CHANGELOG.md
@@ -1,3 +1,6 @@
1
+# 9.3.0
2
+- [fixed] Fix `reference(withPath:)` race condition crash. (#7885)
3
+
4
# 8.12.0
5
- [fixed] **Breaking change:** Mark `getData()` snapshot as nullable to fix Swift API. (#9655)
6
FirebaseDatabase/Sources/Api/FIRDatabase.m
@@ -249,10 +249,12 @@ - (void)assertUnfrozen:(NSString *)methodName {
249
}
250
251
- (void)ensureRepo {
252
- if (self.repo == nil) {
253
- self.repo = [FRepoManager createRepo:self.repoInfo
254
- config:self.config
255
- database:self];
+ @synchronized(self) {
+ if (self.repo == nil) {
+ self.repo = [FRepoManager createRepo:self.repoInfo
+ config:self.config
256
+ database:self];
257
+ }
258
259
260
0 commit comments