mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix #2901: Edge: Fast disconnect and reconnect. v4.0.267
This commit is contained in:
parent
8bd8c1146d
commit
7d782ee8c9
3 changed files with 9 additions and 3 deletions
|
@ -8,6 +8,7 @@ The changelog for SRS.
|
|||
|
||||
## SRS 4.0 Changelog
|
||||
|
||||
* v4.0, 2022-10-10, For [#2901](https://github.com/ossrs/srs/issues/2901): Edge: Fast disconnect and reconnect. v4.0.267
|
||||
* v4.0, 2022-09-27, For [#3167](https://github.com/ossrs/srs/issues/3167): WebRTC: Refine sequence jitter algorithm. v4.0.266
|
||||
* v4.0, 2022-09-16, For [#3179](https://github.com/ossrs/srs/issues/3179): WebRTC: Make sure the same m-lines order for offer and answer. v4.0.265
|
||||
* v4.0, 2022-09-09, For [#3174](https://github.com/ossrs/srs/issues/3174): WebRTC: Support Unity to publish or play stream. v4.0.264
|
||||
|
|
|
@ -202,7 +202,7 @@ void SrsEdgeIngester::stop()
|
|||
trd->stop();
|
||||
upstream->close();
|
||||
|
||||
// notice to unpublish.
|
||||
// Notify source to un-publish if exists.
|
||||
if (source) {
|
||||
source->on_unpublish();
|
||||
}
|
||||
|
@ -232,6 +232,11 @@ srs_error_t SrsEdgeIngester::cycle()
|
|||
srs_freep(err);
|
||||
}
|
||||
|
||||
// Check whether coroutine is stopped, see https://github.com/ossrs/srs/issues/2901
|
||||
if ((err = trd->pull()) != srs_success) {
|
||||
return srs_error_wrap(err, "edge ingester");
|
||||
}
|
||||
|
||||
srs_usleep(SRS_EDGE_INGESTER_CIMS);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 266
|
||||
#define VERSION_REVISION 267
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue