mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
ea9a5f26d9
commit
6993ac226f
12 changed files with 115 additions and 228 deletions
|
@ -501,7 +501,10 @@ int SrsKafkaProducer::cycle()
|
|||
if ((ret = do_cycle()) != ERROR_SUCCESS) {
|
||||
srs_warn("ignore kafka error. ret=%d", ret);
|
||||
}
|
||||
st_usleep(SRS_KAKFA_CIMS * 1000);
|
||||
|
||||
if (!trd->pull()) {
|
||||
st_usleep(SRS_KAKFA_CIMS * 1000);
|
||||
}
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue