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
948a3c84eb
commit
27083430ce
3 changed files with 4 additions and 1 deletions
|
@ -8,6 +8,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 4.0 Changelog
|
||||
|
||||
* v4.0, 2021-11-04, Merge [#2707](https://github.com/ossrs/srs/pull/2707): Refuse edge request when state is stopping. v4.0.192
|
||||
* v4.0, 2021-11-02, Auto create package by github actions. v4.0.191
|
||||
* v4.0, 2021-10-30, Merge [#2552](https://github.com/ossrs/srs/pull/2552): Script: Refine CentOS7 service script to restart SRS. v4.0.190
|
||||
* v4.0, 2021-10-30, Merge [#2397](https://github.com/ossrs/srs/pull/2397): SRTP: Patch libsrtp2 to fix GCC10 build fail. v4.0.189
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 191
|
||||
#define VERSION_REVISION 192
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue