[xiph-commits] r7932 - icecast/branches/kh/icecast/src
karl at motherfish-iii.xiph.org
karl at motherfish-iii.xiph.org
Thu Oct 7 17:27:36 PDT 2004
Author: karl
Date: 2004-10-07 17:27:35 -0700 (Thu, 07 Oct 2004)
New Revision: 7932
Modified:
icecast/branches/kh/icecast/src/slave.c
Log:
allow clients to fallback if on-demand relay fails to start
Modified: icecast/branches/kh/icecast/src/slave.c
===================================================================
--- icecast/branches/kh/icecast/src/slave.c 2004-10-07 23:54:26 UTC (rev 7931)
+++ icecast/branches/kh/icecast/src/slave.c 2004-10-08 00:27:35 UTC (rev 7932)
@@ -303,6 +303,19 @@
return NULL;
} while (0);
+ if (relay->source->fallback_mount)
+ {
+ source_t *fallback_source;
+
+ avl_tree_rlock(global.source_tree);
+ fallback_source = source_find_mount (relay->source->fallback_mount);
+
+ if (fallback_source != NULL)
+ source_move_clients (relay->source, fallback_source);
+
+ avl_tree_unlock (global.source_tree);
+ }
+
if (con == NULL && streamsock != SOCK_ERROR)
sock_close (streamsock);
if (con)
More information about the commits
mailing list