mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
Incorrect use of two "int i" instances. (#3759)
This commit is contained in:
parent
73dd8af4c9
commit
fe38804e61
2 changed files with 7 additions and 5 deletions
|
@ -693,8 +693,8 @@ srs_error_t SrsThreadPool::run()
|
|||
// Check the threads status fastly.
|
||||
int loops = (int)(interval_ / SRS_UTIME_SECONDS);
|
||||
for (int i = 0; i < loops; i++) {
|
||||
for (int i = 0; i < (int)threads.size(); i++) {
|
||||
SrsThreadEntry* entry = threads.at(i);
|
||||
for (int j = 0; j < (int)threads.size(); j++) {
|
||||
SrsThreadEntry* entry = threads.at(j);
|
||||
if (entry->err != srs_success) {
|
||||
// Quit with success.
|
||||
if (srs_error_code(entry->err) == ERROR_THREAD_FINISHED) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue