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:
parent
e0a6fe63cc
commit
bc61b1de18
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue