Edge: Refuse edge request when state is stopping (#2707)
This commit is contained in:
parent
0d8b2df797
commit
a01354a595
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user