mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 18:21:04 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@5516 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
561f598af2
commit
28aa5bc7d9
1 changed files with 13 additions and 15 deletions
|
@ -97,7 +97,6 @@ static NSMutableDictionary *_hostCache = nil;
|
||||||
[_addresses addObject: addr];
|
[_addresses addObject: addr];
|
||||||
}
|
}
|
||||||
|
|
||||||
[_hostCacheLock lock];
|
|
||||||
if (_hostCacheEnabled == YES)
|
if (_hostCacheEnabled == YES)
|
||||||
{
|
{
|
||||||
NSEnumerator *enumerator;
|
NSEnumerator *enumerator;
|
||||||
|
@ -114,7 +113,6 @@ static NSMutableDictionary *_hostCache = nil;
|
||||||
[_hostCache setObject: self forKey: key];
|
[_hostCache setObject: self forKey: key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
[_hostCacheLock unlock];
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -133,7 +131,7 @@ static NSMutableDictionary *_hostCache = nil;
|
||||||
{
|
{
|
||||||
if (self == [NSHost class])
|
if (self == [NSHost class])
|
||||||
{
|
{
|
||||||
_hostCacheLock = [[NSRecursiveLock alloc] init];
|
_hostCacheLock = [[NSLock alloc] init];
|
||||||
_hostCache = [NSMutableDictionary new];
|
_hostCache = [NSMutableDictionary new];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue