1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix bug of reload ingest

This commit is contained in:
winlin 2014-04-10 11:47:38 +08:00
parent e0a6fe63cc
commit bc61b1de18

View file

@ -843,7 +843,11 @@ int SrsConfig::reload_ingest(SrsConfDirective* new_vhost, SrsConfDirective* old_
SrsConfDirective* new_ingester = new_ingesters.at(i);
std::string ingest_id = new_ingester->arg0();
SrsConfDirective* old_ingester = old_vhost->get("ingest", ingest_id);
srs_assert(old_ingester);
// ignore the added ingester.
if (!old_ingester) {
continue;
}
if (srs_directive_equals(new_ingester, old_ingester)) {
continue;