Commit 1e7316b4 authored by Karl Heyes's avatar Karl Heyes

failure case, keep the source count in sync with the number of sources

running, locking for shutdown was also affected.

svn path=/trunk/icecast/; revision=5700
parent 52ed7673
......@@ -241,6 +241,10 @@ void *source_main(void *arg)
if(source->send_return) {
client_send_404(source->client, "Mountpoint in use");
}
global_lock();
global.sources--;
global_unlock();
thread_rwlock_unlock(source->shutdown_rwlock);
thread_exit(0);
return NULL;
}
......
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