1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

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
This commit is contained in:
Karl Heyes 2003-12-17 22:54:43 +00:00
parent 52ed76734d
commit 1e7316b4b2

View File

@ -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;
}