blob: a89e0a7b70d9adedd0d557a4d872a443191682ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
diff -Nur libjingle0.3-0.3.11/talk/p2p/base/tcpport.cc libjingle0.3-0.3.11.new/talk/p2p/base/tcpport.cc
--- libjingle0.3-0.3.11/talk/p2p/base/tcpport.cc 2007-04-25 16:45:58.000000000 +0100
+++ libjingle0.3-0.3.11.new/talk/p2p/base/tcpport.cc 2007-05-01 17:19:29.000000000 +0100
@@ -211,7 +211,10 @@
int TCPConnection::Send(const void* data, size_t size) {
if (write_state() != STATE_WRITABLE)
- return 0;
+ {
+ error_ = EWOULDBLOCK;
+ return SOCKET_ERROR;
+ }
int sent = socket_->Send(data, size);
if (sent < 0) {
|