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 GitHub
parent 0d8b2df797
commit a01354a595
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -916,6 +916,8 @@ srs_error_t SrsPlayEdge::on_client_play()
if (state == SrsEdgeStateInit) { if (state == SrsEdgeStateInit) {
state = SrsEdgeStatePlay; state = SrsEdgeStatePlay;
err = ingester->start(); err = ingester->start();
} else if (state == SrsEdgeStateIngestStopping) {
return srs_error_new(ERROR_RTMP_EDGE_PLAY_STATE, "state is stopping");
} }
return err; return err;