Skip to content

Commit

Permalink
refuse edge request when state is stopping
Browse files Browse the repository at this point in the history
  • Loading branch information
Haibo Chen committed Nov 3, 2021
1 parent 0d8b2df commit 79b0929
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions trunk/src/app/srs_app_edge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,8 @@ srs_error_t SrsPlayEdge::on_client_play()
if (state == SrsEdgeStateInit) {
state = SrsEdgeStatePlay;
err = ingester->start();
} else if (state == SrsEdgeStateIngestStopping) {
return srs_error_new(ERROR_RTMP_EDGE_PLAY_STATE, "state is stopping");
}

return err;
Expand Down

0 comments on commit 79b0929

Please sign in to comment.