Commit 82f1ebf5 authored by Michael Smith's avatar Michael Smith
Browse files

When falling back from a full source to another source, ensure the other source

actually exists. 

svn path=/icecast/trunk/icecast/; revision=10972
parent c892e221
......@@ -286,6 +286,12 @@ static int add_client_to_source (source_t *source, client_t *client)
if (loop && source->fallback_when_full && source->fallback_mount)
source_t *next = source_find_mount (source->fallback_mount);
if (!next) {
ERROR1("Fallback '%s' for full source '%s' not found",
source->mount, source->fallback_mount);
return -1;
INFO1 ("stream full trying %s", next->mount);
source = next;
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