Ouch. Serious bug found by Ricardo Galli.
When the cond var is signalled it will wake up a thread. If all the connection handler threads are handling connections, the signal will be ignored and clients will 'pend' until another client causes the to signal again. We have to check to see if there are more pending connections before waiting on the signal again. svn path=/trunk/icecast/; revision=3178
Showing with 175 additions and 176 deletions