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

Unified Diff: p2p/base/relayport.cc

Issue 3015543002: Try creating sockets again if network change occurs after bind failed. (Closed)
Patch Set: Split up TestGatherLowCostNetworkOnly Created 3 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
« no previous file with comments | « no previous file | p2p/client/basicportallocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: p2p/base/relayport.cc
diff --git a/p2p/base/relayport.cc b/p2p/base/relayport.cc
index e3b7a7f065ee08b9e6996ad10adc1ebc6d85f888..0742b54e814a6bcdcb86c6e1e43dbafd998fbf3e 100644
--- a/p2p/base/relayport.cc
+++ b/p2p/base/relayport.cc
@@ -500,12 +500,9 @@ void RelayEntry::Connect() {
LOG(LS_WARNING) << "Unknown protocol (" << ra->proto << ")";
}
- if (!socket) {
- LOG(LS_WARNING) << "Socket creation failed";
- }
-
// If we failed to get a socket, move on to the next protocol.
if (!socket) {
+ LOG(LS_WARNING) << "Socket creation failed";
port()->thread()->Post(RTC_FROM_HERE, this, kMessageConnectTimeout);
return;
}
« no previous file with comments | « no previous file | p2p/client/basicportallocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698