Commit 8e99b390 authored by Karl Heyes's avatar Karl Heyes
Browse files

safety check, avoid the case of a cyclic cascading fallback

svn path=/icecast/trunk/icecast/; revision=9196
parent 9253bf72
......@@ -314,6 +314,11 @@ client_t *source_find_client(source_t *source, int id)
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);
/* we don't want the two write locks to deadlock in here */
thread_mutex_lock (&move_clients_mutex);
Supports Markdown
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