Commit d6d634ac authored by giles's avatar giles

Recommit of changes lost in the server migration

Original commit (r6810) 2004-06-04 03:15:36 -0400 (Fri, 04 Jun 2004) by msmith.

Fix #526. Fallbacks weren't being found when the primary was disconnected (for
newly-connecting clients).

svn path=/icecast/trunk/icecast/; revision=6810
parent fe2a763e
......@@ -152,10 +152,8 @@ source_t *source_find_mount (const char *mount)
}
source = source_find_mount_raw(mount);
if (source == NULL)
break; /* fallback to missing mountpoint */
if (source->running)
if (source != NULL && source->running)
break;
/* source is not running, meaning that the fallback is not configured
......@@ -737,7 +735,8 @@ void source_main (source_t *source)
}
thread_mutex_unlock(&source->queue_mutex);
client->burst_sent = 1;
DEBUG1("Added %d buffers to initial client queue", refbuf_queue_length(&(source->queue)));
DEBUG1("Added %d buffers to initial client queue",
refbuf_queue_length(&(source->queue)));
}
}
......
Markdown is supported
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