From df13db2b644b3635950921f315d956fb92348805 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 14 Sep 2009 23:12:54 +0000 Subject: [PATCH] Fixed triggering Com_Error() when kicking a large number of bots at once. Fixes Bugzilla #3418. --- code/server/sv_net_chan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/server/sv_net_chan.c b/code/server/sv_net_chan.c index 9cc3faea..dd039efe 100644 --- a/code/server/sv_net_chan.c +++ b/code/server/sv_net_chan.c @@ -138,7 +138,7 @@ void SV_Netchan_TransmitNextFragment( client_t *client ) { if (!client->netchan.unsentFragments) { // make sure the netchan queue has been properly initialized (you never know) - if (!client->netchan_end_queue) { + if ((!client->netchan_end_queue) && (client->state >= CS_CONNECTED)) { Com_Error(ERR_DROP, "netchan queue is not properly initialized in SV_Netchan_TransmitNextFragment\n"); } // the last fragment was transmitted, check wether we have queued messages