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

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

Issue 1359363003: Make it possible to keep the port allocator session running (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Created 5 years, 3 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 982025279d7322102add345e7c897145599233bb..38ab52b7c4f1ad9411c68763f3d9734e881bf395 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -189,9 +189,9 @@ void BasicPortAllocatorSession::StartGettingPorts() {
network_thread_->PostDelayed(ShakeDelay(), this, MSG_SHAKE);
}
-void BasicPortAllocatorSession::StopGettingPorts() {
+void BasicPortAllocatorSession::StopGettingPorts(bool keep_session_running) {
ASSERT(rtc::Thread::Current() == network_thread_);
- running_ = false;
+ running_ = keep_session_running;
network_thread_->Clear(this, MSG_ALLOCATE);
for (uint32 i = 0; i < sequences_.size(); ++i)
sequences_[i]->Stop();

Powered by Google App Engine
This is Rietveld 408576698