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
0d8b2df797
commit
a01354a595
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue