Index: webrtc/p2p/base/port.cc |
diff --git a/webrtc/p2p/base/port.cc b/webrtc/p2p/base/port.cc |
index ab7ba09ea513a61a8876a4ad47999a1a6aa57d11..d4dfd91ecaa56ebc176ba215b9d2b2ef7664f691 100644 |
--- a/webrtc/p2p/base/port.cc |
+++ b/webrtc/p2p/base/port.cc |
@@ -1525,7 +1525,7 @@ |
int ProxyConnection::Send(const void* data, size_t size, |
const rtc::PacketOptions& options) { |
- if (!ReadyToSendMedia()) { |
+ if (write_state_ == STATE_WRITE_INIT || write_state_ == STATE_WRITE_TIMEOUT) { |
error_ = EWOULDBLOCK; |
return SOCKET_ERROR; |
} |