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

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

Issue 2124283003: Fixing inconsistency with behavior of `ClearGettingPorts`. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 5 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 fabbc429e5292a941ec726f0571cbb113f01be47..d38fd50dba834cf3c0e2ab39bd225b5503eb2ff0 100644
--- a/webrtc/p2p/client/basicportallocator.cc
+++ b/webrtc/p2p/client/basicportallocator.cc
@@ -253,7 +253,6 @@ void BasicPortAllocatorSession::StartGettingPorts() {
void BasicPortAllocatorSession::StopGettingPorts() {
ASSERT(rtc::Thread::Current() == network_thread_);
- network_thread_->Post(RTC_FROM_HERE, this, MSG_CONFIG_STOP);
ClearGettingPorts();
// Note: this must be called after ClearGettingPorts because both may set the
// session state and we should set the state to STOPPED.
@@ -266,6 +265,7 @@ void BasicPortAllocatorSession::ClearGettingPorts() {
for (uint32_t i = 0; i < sequences_.size(); ++i) {
sequences_[i]->Stop();
}
+ network_thread_->Post(RTC_FROM_HERE, this, MSG_CONFIG_STOP);
pthatcher1 2016/07/22 18:11:22 ClearGettingPorts sends MSG_CONFIG_STOP? That's c
Taylor Brandstetter 2016/07/22 19:58:42 In my opinion the issue is more that "ClearGetting
state_ = SessionState::CLEARED;
}

Powered by Google App Engine
This is Rietveld 408576698