RTC: Fix clear zombie bug
This commit is contained in:
parent
2a3b5e5290
commit
27b85c7390
|
|
@ -79,7 +79,11 @@ srs_error_t SrsConnectionManager::cycle()
|
|||
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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user