fix memory leak
This commit is contained in:
parent
0cbff9878e
commit
2c7cd2e83c
3 changed files with 10 additions and 7 deletions
|
|
@ -50,7 +50,7 @@ impl MatchmakeManager{
|
|||
async fn garbage_collect(&self){
|
||||
info!("running rnex garbage collector over all sessions and users");
|
||||
|
||||
let idx = 0;
|
||||
let mut idx = 0;
|
||||
|
||||
let mut to_be_deleted_gids = Vec::new();
|
||||
|
||||
|
|
@ -69,6 +69,8 @@ impl MatchmakeManager{
|
|||
if !session.is_reachable(){
|
||||
to_be_deleted_gids.push(gid);
|
||||
}
|
||||
|
||||
idx += 1;
|
||||
}
|
||||
|
||||
let mut sessions = self.sessions.write().await;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue