remove spam/infinite loop bug.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4314 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-04-13 07:53:21 +00:00
parent b3fccfa11f
commit 19c2e051a6
1 changed files with 2 additions and 2 deletions

View File

@ -340,7 +340,7 @@ int sql_serverworker(void *sref)
int totalrows = 0;
qboolean keeplooping = true;
Sys_Printf("processing %s\n", statementstring);
// Sys_Printf("processing %s\n", statementstring);
// qsqlite3_mutex_enter(server->sqlite->mutex);
// while(*statementstring)
// {
@ -596,7 +596,7 @@ void SQL_CloseRequest(sqlserver_t *server, queryrequest_t *qreq, qboolean force)
SQL_CloseResult(server, qreq->results);
}
//if the worker thread is still active with it for whatever reason, flag it as aborted but keep it otherwise valid. actually close it later on when we get the results back.
if (qreq->state != SR_FINISHED && qreq->state != SR_NEW)
if (qreq->state != SR_FINISHED && qreq->state != SR_NEW && !force)
qreq->state = SR_ABORTED;
else
{