Skip to content

Commit d44fabf

Browse files
authored
Early return for rollouts write errors (#13103)
1 parent 64b15ff commit d44fabf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Crashlytics/Crashlytics/Controllers/FIRCLSRolloutsPersistenceManager.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,15 @@ - (void)updateRolloutsStateToPersistenceWithRollouts:(NSData *_Nonnull)rollouts
5959
if (![_fileManager createFileAtPath:rolloutsPath contents:nil attributes:nil]) {
6060
FIRCLSDebugLog(@"Could not create rollouts.clsrecord file. Error was code: %d - message: %s",
6161
errno, strerror(errno));
62+
return;
6263
}
6364
}
6465

6566
NSFileHandle *rolloutsFile = [NSFileHandle fileHandleForUpdatingAtPath:rolloutsPath];
6667

6768
if (!_rolloutsLoggingQueue) {
6869
FIRCLSDebugLog(@"Rollouts logging queue is dealloccated");
70+
return;
6971
}
7072

7173
dispatch_async(_rolloutsLoggingQueue, ^{

0 commit comments

Comments
 (0)