git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-12-15 08:51:16 +00:00
parent 561f598af2
commit 28aa5bc7d9

View file

@ -97,7 +97,6 @@ static NSMutableDictionary *_hostCache = nil;
[_addresses addObject: addr];
}
[_hostCacheLock lock];
if (_hostCacheEnabled == YES)
{
NSEnumerator *enumerator;
@ -114,7 +113,6 @@ static NSMutableDictionary *_hostCache = nil;
[_hostCache setObject: self forKey: key];
}
}
[_hostCacheLock unlock];
return self;
}
@ -133,7 +131,7 @@ static NSMutableDictionary *_hostCache = nil;
{
if (self == [NSHost class])
{
_hostCacheLock = [[NSRecursiveLock alloc] init];
_hostCacheLock = [[NSLock alloc] init];
_hostCache = [NSMutableDictionary new];
}
}