mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Edge: Refuse edge request when state is stopping (#2707)
This commit is contained in:
parent
948a3c84eb
commit
27083430ce
3 changed files with 4 additions and 1 deletions
|
@ -670,6 +670,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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue