Fix 100% CPU usage on idle dedicated servers.

This commit is contained in:
Thilo Schulz 2006-08-18 01:50:51 +00:00
parent 55bddd58fd
commit 5e88acf217
3 changed files with 38 additions and 9 deletions

View file

@ -777,7 +777,15 @@ void SV_Frame( int msec ) {
return;
}
if ( !com_sv_running->integer ) {
if (!com_sv_running->integer)
{
if(com_dedicated->integer)
{
// Block indefinitely until something interesting happens
// on STDIN.
NET_Sleep(-1);
}
return;
}