1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-09-29 04:25:55 -04:00

allow clients to fallback if on-demand relay fails to start

svn path=/icecast/branches/kh/icecast/; revision=7932
This commit is contained in:
Karl Heyes 2004-10-08 00:27:35 +00:00
parent aed9fec0db
commit 9b9bc42416

View File

@ -303,6 +303,19 @@ static void *start_relay_stream (void *arg)
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)