From 27976f40a6809e322a9fea54f4e1b8fc9c0980b9 Mon Sep 17 00:00:00 2001 From: CaS Date: Fri, 11 Oct 2002 17:27:10 +0000 Subject: [PATCH] Don't wait unnecessarily. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14726 72102866-910b-0410-8b05-ffd578937521 --- Source/NSUserDefaults.m | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/Source/NSUserDefaults.m b/Source/NSUserDefaults.m index c6cd7693f..2e4351a43 100644 --- a/Source/NSUserDefaults.m +++ b/Source/NSUserDefaults.m @@ -748,25 +748,8 @@ static NSString *pathForUser(NSString *user) _persDomains = [[NSMutableDictionaryClass alloc] initWithCapacity: 10]; if ([self synchronize] == NO) { - NSRunLoop *runLoop = [NSRunLoop currentRunLoop]; - BOOL done = NO; - int attempts; - - // Retry for a couple of seconds in case we are locked out. - for (attempts = 0; done == NO && attempts < 10; attempts++) - { - [runLoop runMode: NSDefaultRunLoopMode - beforeDate: [NSDate dateWithTimeIntervalSinceNow: 0.2]]; - if ([self synchronize] == YES) - { - done = YES; - } - } - if (done == NO) - { - DESTROY(self); - return self; - } + DESTROY(self); + return self; } // Check and if not existent add the Application and the Global domains