Skip to content

Commit

Permalink
ice: Fix Candidates leak (webrtc-rs#608)
Browse files Browse the repository at this point in the history
  • Loading branch information
zpl committed Aug 31, 2024
1 parent 23bbc1f commit f57b9f3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ice/src/agent/agent_transport.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ impl Conn for AgentConn {
}

async fn close(&self) -> std::result::Result<(), util::Error> {
let mut checklist = self.checklist.lock().await;
checklist.clear();
self.selected_pair.swap(None);
Ok(())
}

Expand Down

0 comments on commit f57b9f3

Please sign in to comment.