mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Fix stream api iterator not incremented (#2582)
This commit is contained in:
parent
53cb333713
commit
ff9e2339c1
1 changed files with 1 additions and 1 deletions
|
@ -500,7 +500,7 @@ srs_error_t SrsStatistic::dumps_streams(SrsJsonArray* arr, int start, int count)
|
||||||
srs_error_t err = srs_success;
|
srs_error_t err = srs_success;
|
||||||
|
|
||||||
std::map<std::string, SrsStatisticStream*>::iterator it = streams.begin();
|
std::map<std::string, SrsStatisticStream*>::iterator it = streams.begin();
|
||||||
for (int i = 0; i < start + count && it != streams.end(); i++) {
|
for (int i = 0; i < start + count && it != streams.end(); it++, i++) {
|
||||||
if (i < start) {
|
if (i < start) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue