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

RTC: Refine timer stat

This commit is contained in:
winlin 2021-05-07 19:01:25 +08:00
parent 25f17c32e9
commit e7cce88912

View file

@ -194,8 +194,11 @@ srs_error_t SrsFastTimer::cycle()
return srs_error_wrap(err, "quit");
}
++_srs_pps_timer->sugar;
for (int i = 0; i < (int)handlers_.size(); i++) {
ISrsFastTimer* timer = handlers_.at(i);
if ((err = timer->on_timer(interval_)) != srs_success) {
srs_freep(err); // Ignore any error for shared timer.
}