fix potential deadlock

// FREEBIE
pull/1/head
Michael Kirk 8 years ago
parent 5cd1d17056
commit e5c6d0db9a

@ -1,5 +1,5 @@
// //
// Copyright © 2017 Open Whisper Systems. All rights reserved. // Copyright (c) 2017 Open Whisper Systems. All rights reserved.
// //
#import "OWS102MoveLoggingPreferenceToUserDefaults.h" #import "OWS102MoveLoggingPreferenceToUserDefaults.h"
@ -22,8 +22,8 @@ static NSString *const OWS102MoveLoggingPreferenceToUserDefaultsMigrationId = @"
DDLogWarn(@"[OWS102MoveLoggingPreferenceToUserDefaultsMigrationId] copying existing logging preference to " DDLogWarn(@"[OWS102MoveLoggingPreferenceToUserDefaultsMigrationId] copying existing logging preference to "
@"NSUserDefaults"); @"NSUserDefaults");
NSNumber *existingValue = [self.storageManager objectForKey:PropertyListPreferencesKeyEnableDebugLog NSNumber *existingValue = [transaction objectForKey:PropertyListPreferencesKeyEnableDebugLog
inCollection:PropertyListPreferencesSignalDatabaseCollection]; inCollection:PropertyListPreferencesSignalDatabaseCollection];
if (existingValue) { if (existingValue) {
DDLogInfo(@"%@ assigning existing value: %@", self.tag, existingValue); DDLogInfo(@"%@ assigning existing value: %@", self.tag, existingValue);

Loading…
Cancel
Save