Skip to content

Commit

Permalink
For #1579, refactor log for gracefully quit.
Browse files Browse the repository at this point in the history
  • Loading branch information
winlinvip committed Feb 26, 2020
1 parent 20b9d6a commit ea30579
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions trunk/src/app/srs_app_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,11 @@ void SrsServer::gracefully_dispose()
close_listeners(SrsListenerMpegTsOverUdp);
close_listeners(SrsListenerRtsp);
close_listeners(SrsListenerFlv);
srs_trace("listeners closed");

// Fast stop to notify FFMPEG to quit, wait for a while then fast kill.
ingester->stop();
srs_trace("ingesters stopped");

// Wait for connections to quit.
// While gracefully quiting, user can requires SRS to fast quit.
Expand All @@ -572,6 +574,7 @@ void SrsServer::gracefully_dispose()

// dispose the source for hls and dvr.
_srs_sources->dispose();
srs_trace("source disposed");

#ifdef SRS_AUTO_MEM_WATCH
srs_memory_report();
Expand Down

0 comments on commit ea30579

Please sign in to comment.