1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05: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++; 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 */ /* mark any clients that are ready */
fclient = active_list; fclient = active_list;