1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

fix #442: HTTP API kickoff client.

This commit is contained in:
lovacat 2015-08-11 15:23:46 +08:00
parent 0e3128d3e3
commit e8c0ca7af0
10 changed files with 121 additions and 18 deletions

View file

@ -773,6 +773,13 @@ int SrsRtmpConn::do_publishing(SrsSource* source, SrsPublishRecvThread* trd)
int64_t nb_msgs = 0;
while (!disposed) {
pprint->elapse();
// when source is set to expired, disconnect it.
if (source->expired()) {
ret = ERROR_USER_DISCONNECT;
srs_error("source is expired. ret=%d", ret);
return ret;
}
// cond wait for timeout.
if (nb_msgs == 0) {