mirror of
https://github.com/gnustep/libs-sqlclient.git
synced 2025-02-22 19:31:36 +00:00
fix logic error in picking existing client rather than adding to pool
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/sqlclient/trunk@37980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
518103553a
commit
2ce0c959db
1 changed files with 2 additions and 2 deletions
|
@ -1198,9 +1198,9 @@ static unsigned int maxConnections = 8;
|
||||||
|
|
||||||
[clientsLock lock];
|
[clientsLock lock];
|
||||||
_pool = pool;
|
_pool = pool;
|
||||||
if (nil == _pool)
|
if (nil != _pool)
|
||||||
{
|
{
|
||||||
existing = nil;
|
existing = nil; // Pool, object ... can't already exist
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue