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

Refine typo in files. 3.0.51

This commit is contained in:
winlin 2019-04-30 08:30:13 +08:00
parent 45009785fb
commit 6b2c71d385
33 changed files with 90 additions and 93 deletions

View file

@ -373,17 +373,13 @@ string srs_getenv(const char* name)
srs_error_t run(SrsServer* svr)
{
srs_error_t err = srs_success;
/**
* we do nothing in the constructor of server,
* and use initialize to create members, set hooks for instance the reload handler,
* all initialize will done in this stage.
*/
// Initialize the whole system, set hooks to handle server level events.
if ((err = svr->initialize(NULL)) != srs_success) {
return srs_error_wrap(err, "server initialize");
}
// if not deamon, directly run master.
// If not deamon, directly run master.
if (!_srs_config->get_deamon()) {
if ((err = run_master(svr)) != srs_success) {
return srs_error_wrap(err, "run master");