mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Refactor HTTP stream to disconnect client when unpublish
This commit is contained in:
parent
1e83da7812
commit
191b07668d
7 changed files with 26 additions and 25 deletions
|
@ -390,8 +390,8 @@ srs_error_t SrsRtmpConn::service_cycle()
|
|||
|
||||
// stream service must terminated with error, never success.
|
||||
// when terminated with success, it's user required to stop.
|
||||
if (srs_error_code(err) == ERROR_SUCCESS) {
|
||||
srs_freep(err);
|
||||
// TODO: FIXME: Support RTMP client timeout, https://github.com/ossrs/srs/issues/1134
|
||||
if (err == srs_success) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue