1
0
Fork 0
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:
Haibo Chen 2021-11-04 07:28:48 +08:00 committed by winlin
parent 948a3c84eb
commit 27083430ce
3 changed files with 4 additions and 1 deletions

View file

@ -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;