Index: webrtc/pc/channel.cc |
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc |
index c1909a2829c8f5a810d75a6c321fe8386bfdd6e1..cde1355d234a5dd637bea129571cc0b16ada315d 100644 |
--- a/webrtc/pc/channel.cc |
+++ b/webrtc/pc/channel.cc |
@@ -758,8 +758,8 @@ bool BaseChannel::SendPacket(bool rtcp, |
int ret = channel->SendPacket(packet->data<char>(), packet->size(), |
updated_options, flags); |
if (ret != static_cast<int>(packet->size())) { |
- if (channel->GetError() == EWOULDBLOCK) { |
- LOG(LS_WARNING) << "Got EWOULDBLOCK from socket."; |
+ if (channel->GetError() == ENOTCONN) { |
+ LOG(LS_WARNING) << "Got ENOTCONN from transport."; |
SetReadyToSend(rtcp, false); |
} |
return false; |