mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2024-12-04 14:46:30 -05:00
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
This commit is contained in:
parent
fe2a763e9e
commit
d6d634ac02
@ -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)));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user