[xiph-commits] r8959 - icecast/trunk/icecast/src

brendan at motherfish-iii.xiph.org brendan at motherfish-iii.xiph.org
Sat Feb 19 14:44:09 PST 2005


Author: brendan
Date: 2005-02-19 14:44:09 -0800 (Sat, 19 Feb 2005)
New Revision: 8959

Modified:
   icecast/trunk/icecast/src/fserve.c
Log:
Whoops, don't spin if ufds is null.


Modified: icecast/trunk/icecast/src/fserve.c
===================================================================
--- icecast/trunk/icecast/src/fserve.c	2005-02-19 22:29:04 UTC (rev 8958)
+++ icecast/trunk/icecast/src/fserve.c	2005-02-19 22:44:09 UTC (rev 8959)
@@ -142,7 +142,9 @@
             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;



More information about the commits mailing list