git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4684
d7cf8633-e32d-0410-b094-
e92efae38249
*/
void Log_ConPrint (const char *msg)
{
+ static qboolean inprogress = false;
+ // don't allow feedback loops with memory error reports
+ if (inprogress)
+ return;
+ inprogress = true;
// Until the host is completely initialized, we maintain a log queue
// to store the messages, since the log can't be started before
if (logqueue != NULL)
memcpy (&logqueue[logq_ind], msg, len);
logq_ind += len;
+ inprogress = false;
return;
}
if (log_sync.integer)
FS_Flush (logfile);
}
+ inprogress = false;
}