Commit 00749e6a authored by brendan's avatar brendan

The poll version of fserve_client_waiting causes icecast to die with an

assertion when it first starts up on OS X, because ufds starts out NULL.
I'd been using the select version until now and never noticed.

svn path=/icecast/trunk/icecast/; revision=8956
parent bada4b1c
......@@ -142,7 +142,7 @@ int fserve_client_waiting (void)
i++;
}
}
if (poll(ufds, fserve_clients, 200) > 0)
if (ufds && poll(ufds, fserve_clients, 200) > 0)
{
/* mark any clients that are ready */
fclient = active_list;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment