mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
safety check, avoid the case of a cyclic cascading fallback
svn path=/icecast/trunk/icecast/; revision=9196
This commit is contained in:
parent
9253bf7248
commit
8e99b390f2
@ -314,6 +314,11 @@ client_t *source_find_client(source_t *source, int id)
|
|||||||
*/
|
*/
|
||||||
void source_move_clients (source_t *source, source_t *dest)
|
void source_move_clients (source_t *source, source_t *dest)
|
||||||
{
|
{
|
||||||
|
if (strcmp (source->mount, dest->mount) == 0)
|
||||||
|
{
|
||||||
|
WARN1 ("src and dst are the same \"%s\", skipping", source->mount);
|
||||||
|
return;
|
||||||
|
}
|
||||||
/* we don't want the two write locks to deadlock in here */
|
/* we don't want the two write locks to deadlock in here */
|
||||||
thread_mutex_lock (&move_clients_mutex);
|
thread_mutex_lock (&move_clients_mutex);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user