mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-25 06:32:29 +00:00
Tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3198 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5ac6523902
commit
d51c18cd34
1 changed files with 2 additions and 2 deletions
|
@ -84,9 +84,9 @@ static NSPortNameServer *defaultServer = nil;
|
|||
if (self == [NSPortNameServer class])
|
||||
{
|
||||
[gnustep_global_lock lock];
|
||||
serverLock = [NSRecursiveLock new];
|
||||
if (modes == nil)
|
||||
if (serverLock == nil)
|
||||
{
|
||||
serverLock = [NSRecursiveLock new];
|
||||
modes = [[NSArray alloc] initWithObjects: &mode count: 1];
|
||||
}
|
||||
[gnustep_global_lock unlock];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue