mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
thread-safety fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25999 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
61e4f2effc
commit
571622383b
1 changed files with 4 additions and 1 deletions
|
@ -405,7 +405,6 @@ myHostName()
|
|||
{
|
||||
host = [_hostCache objectForKey: address];
|
||||
}
|
||||
|
||||
if (host == nil)
|
||||
{
|
||||
struct hostent *h;
|
||||
|
@ -441,6 +440,10 @@ myHostName()
|
|||
AUTORELEASE(host);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
AUTORELEASE(RETAIN(host));
|
||||
}
|
||||
[_hostCacheLock unlock];
|
||||
return host;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue