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

Micro changes and refines.

This commit is contained in:
winlin 2022-09-30 18:11:59 +08:00
parent 378bffa34f
commit d65c699829
9 changed files with 14 additions and 23 deletions

View file

@ -325,6 +325,8 @@ SrsServer::SrsServer()
signal_manager = new SrsSignalManager(this);
conn_manager = new SrsResourceManager("TCP", true);
latest_version_ = new SrsLatestVersion();
ppid = ::getppid();
rtmp_listener_ = new SrsMultipleTcpListeners(this);
api_listener_ = new SrsTcpListener(this);
apis_listener_ = new SrsTcpListener(this);
@ -333,7 +335,6 @@ SrsServer::SrsServer()
webrtc_listener_ = new SrsTcpListener(this);
stream_caster_flv_listener_ = new SrsHttpFlvListener();
stream_caster_mpegts_ = new SrsUdpCasterListener();
ppid = ::getppid();
// donot new object in constructor,
// for some global instance is not ready now,