Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: webrtc/p2p/client/basicportallocator.cc

Issue 2717893003: Making candidate pool size behave as decided in JSEP. (Closed)
Patch Set: Get rid of now-unnecessary test. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/p2p/client/basicportallocator.cc
diff --git a/webrtc/p2p/client/basicportallocator.cc b/webrtc/p2p/client/basicportallocator.cc
index 629218f89a3e1baee6c81a5e0dbce7820218d564..64469f91093658933bbd25828b8173ab9217d289 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -169,6 +169,9 @@ void BasicPortAllocator::OnIceRegathering(PortAllocatorSession* session,
}
BasicPortAllocator::~BasicPortAllocator() {
+ // Our created port allocator sessions depend on us, so destroy our remaining
+ // pooled sessions before anything else.
+ DiscardPooledSessions();
}
PortAllocatorSession* BasicPortAllocator::CreateSessionInternal(

Powered by Google App Engine
This is Rietveld 408576698