Edge: Refuse edge request when state is stopping (#2707)

pull/2714/head
Haibo Chen 3 years ago committed by GitHub
parent 0d8b2df797
commit a01354a595
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save