mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
remove mistaken assert
I'm not quite sure why it was firing, but the pattern of a FindGame failing due to a race condition and requiring a retry exists elsewhere in the code. Lots of tests pass once this change is made. :-)
This commit is contained in:
parent
8650795a81
commit
fb4f44b0fc
1 changed files with 0 additions and 1 deletions
|
@ -193,7 +193,6 @@ DBMgr::FindGame( const AddrInfo::ClientToken clientToken, HostID hid,
|
||||||
logf( XW_LOGINFO, "query: %s", query.c_str() );
|
logf( XW_LOGINFO, "query: %s", query.c_str() );
|
||||||
|
|
||||||
PGresult* result = PQexec( getThreadConn(), query.c_str() );
|
PGresult* result = PQexec( getThreadConn(), query.c_str() );
|
||||||
assert( 1 >= PQntuples( result ) );
|
|
||||||
if ( 1 == PQntuples( result ) ) {
|
if ( 1 == PQntuples( result ) ) {
|
||||||
int col = 0;
|
int col = 0;
|
||||||
cid = atoi( PQgetvalue( result, 0, col++ ) );
|
cid = atoi( PQgetvalue( result, 0, col++ ) );
|
||||||
|
|
Loading…
Reference in a new issue