From 19c2e051a6475d1ffb131cd51be496b70e15b35a Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 13 Apr 2013 07:53:21 +0000 Subject: [PATCH] remove spam/infinite loop bug. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4314 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/server/sv_sql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/server/sv_sql.c b/engine/server/sv_sql.c index c3176e213..a91acb30c 100644 --- a/engine/server/sv_sql.c +++ b/engine/server/sv_sql.c @@ -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 {