1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-29 04:25:55 -04:00

Whoops, don't spin if ufds is null.

svn path=/icecast/trunk/icecast/; revision=8959
This commit is contained in:
brendan 2005-02-19 22:44:09 +00:00
parent 00749e6a68
commit 82a9fa3bc7

View File

@ -142,7 +142,9 @@ int fserve_client_waiting (void)
i++;
}
}
if (ufds && poll(ufds, fserve_clients, 200) > 0)
if (!ufds)
thread_sleep(200000);
else if (poll(ufds, fserve_clients, 200) > 0)
{
/* mark any clients that are ready */
fclient = active_list;