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:
parent
52ed76734d
commit
1e7316b4b2
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user