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:
parent
45009785fb
commit
6b2c71d385
33 changed files with 90 additions and 93 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue