mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
cleanup connections when terminate server.
This commit is contained in:
parent
d7e5df2578
commit
00a25ee5c5
1 changed files with 4 additions and 1 deletions
|
@ -324,7 +324,10 @@ int SrsRtmpConn::service_cycle()
|
|||
ret = stream_service_cycle();
|
||||
|
||||
// stream service must terminated with error, never success.
|
||||
srs_assert(ret != ERROR_SUCCESS);
|
||||
// when terminated with success, it's user required to stop.
|
||||
if (ret == ERROR_SUCCESS) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// when not system control error, fatal error, return.
|
||||
if (!srs_is_system_control_error(ret)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue