mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Forward: Fast quit when cycle fail. v4.0.188 (#2284)
This commit is contained in:
parent
8af98bcf46
commit
8125dd4dd1
3 changed files with 8 additions and 1 deletions
|
@ -175,6 +175,12 @@ srs_error_t SrsForwarder::cycle()
|
|||
srs_freep(err);
|
||||
}
|
||||
|
||||
// Never wait if thread error, fast quit.
|
||||
// @see https://github.com/ossrs/srs/pull/2284
|
||||
if ((err = trd->pull()) != srs_success) {
|
||||
return srs_error_wrap(err, "forwarder");
|
||||
}
|
||||
|
||||
srs_usleep(SRS_FORWARDER_CIMS);
|
||||
}
|
||||
|
||||
|
|
|
@ -9,6 +9,6 @@
|
|||
|
||||
#define VERSION_MAJOR 4
|
||||
#define VERSION_MINOR 0
|
||||
#define VERSION_REVISION 187
|
||||
#define VERSION_REVISION 188
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue