mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
RTC: Fix clear zombie bug
This commit is contained in:
parent
2a3b5e5290
commit
27b85c7390
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ srs_error_t SrsConnectionManager::cycle()
|
||||||
return srs_error_wrap(err, "conn manager");
|
return srs_error_wrap(err, "conn manager");
|
||||||
}
|
}
|
||||||
|
|
||||||
clear();
|
// Clear all zombies, because we may switch context and lost signal
|
||||||
|
// when we clear zombie connection.
|
||||||
|
while (!zombies_.empty()) {
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
srs_cond_wait(cond);
|
srs_cond_wait(cond);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue