[xiph-commits] r9196 - icecast/trunk/icecast/src

karl at motherfish-iii.xiph.org karl at motherfish-iii.xiph.org
Sat Apr 30 19:30:08 PDT 2005


Author: karl
Date: 2005-04-30 19:30:06 -0700 (Sat, 30 Apr 2005)
New Revision: 9196

Modified:
   icecast/trunk/icecast/src/source.c
Log:
safety check, avoid the case of a cyclic cascading fallback


Modified: icecast/trunk/icecast/src/source.c
===================================================================
--- icecast/trunk/icecast/src/source.c	2005-05-01 02:04:11 UTC (rev 9195)
+++ icecast/trunk/icecast/src/source.c	2005-05-01 02:30:06 UTC (rev 9196)
@@ -314,6 +314,11 @@
  */
 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 */
     thread_mutex_lock (&move_clients_mutex);
 



More information about the commits mailing list