mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
防止ingester多次调用stop导致崩溃
This commit is contained in:
parent
63b5c51748
commit
0aecc063e0
2 changed files with 2 additions and 0 deletions
|
@ -690,6 +690,7 @@ void SrsPlayEdge::on_all_client_stop()
|
|||
// when all client disconnected,
|
||||
// and edge is ingesting origin stream, abort it.
|
||||
if (state == SrsEdgeStatePlay || state == SrsEdgeStateIngestConnected) {
|
||||
state = SrsEdgeStateIngestStoping; // avoid multi call stop
|
||||
ingester->stop();
|
||||
|
||||
SrsEdgeState pstate = state;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue