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; |
} |