Fix race condition.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@15268 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2002-12-08 20:18:34 +00:00
parent 65d972a7a6
commit 278469e140
2 changed files with 8 additions and 1 deletions

View file

@ -786,9 +786,11 @@ static NSDate *theFuture;
}
else
{
NSConditionLock *l = lock;
[lock lock];
[lock unlockWithCondition: 1];
lock = nil;
[l unlockWithCondition: 1];
}
}
@end