Index: webrtc/pc/channel.cc |
diff --git a/webrtc/pc/channel.cc b/webrtc/pc/channel.cc |
index c1909a2829c8f5a810d75a6c321fe8386bfdd6e1..bd25400ce82f68f47f227983835b22f8d1b6bec9 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 socket."; |
pthatcher1
2016/07/28 20:27:50
"from socket" probably isn't accurate any more. P
|
SetReadyToSend(rtcp, false); |
} |
return false; |