mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
refine code for http remux reload.
This commit is contained in:
parent
0aa053433c
commit
50feaacdde
2 changed files with 4 additions and 1 deletions
|
@ -853,6 +853,7 @@ int SrsConfig::reload_vhost(SrsConfDirective* old_root)
|
|||
}
|
||||
}
|
||||
|
||||
// TODO: reload new http_remux in on_vhost_add
|
||||
// http_remux, only one per vhost.
|
||||
if (get_vhost_http_remux_enabled(vhost)) {
|
||||
for (it = subscribes.begin(); it != subscribes.end(); ++it) {
|
||||
|
|
|
@ -1228,7 +1228,9 @@ int SrsHttpStreamServer::initialize_flv_streaming()
|
|||
continue;
|
||||
}
|
||||
|
||||
initialize_flv_entry(conf->arg0());
|
||||
if ((ret = initialize_flv_entry(conf->arg0())) != ERROR_SUCCESS) {
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue