diff options
Diffstat (limited to 'cppe/src/TcpTransport/Transceiver.cpp')
-rw-r--r-- | cppe/src/TcpTransport/Transceiver.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cppe/src/TcpTransport/Transceiver.cpp b/cppe/src/TcpTransport/Transceiver.cpp index 82f53f36256..5b385b2a751 100644 --- a/cppe/src/TcpTransport/Transceiver.cpp +++ b/cppe/src/TcpTransport/Transceiver.cpp @@ -117,8 +117,8 @@ IceInternal::Transceiver::write(Buffer& buf, int timeout) { #ifdef _WIN32 repeatError: -#endif
- if(interrupted()) +#endif + if(interrupted()) { continue; } @@ -280,7 +280,7 @@ IceInternal::Transceiver::read(Buffer& buf, int timeout) { #ifdef _WIN32 repeatError: -#endif
+#endif if(interrupted()) { continue; @@ -435,10 +435,11 @@ IceInternal::Transceiver::Transceiver(const InstancePtr& instance, SOCKET fd) : _event = WSACreateEvent(); if(_event == 0) { + int error = WSAGetLastError(); closeSocket(_fd); SocketException ex(__FILE__, __LINE__); - ex.error = getSocketErrno(); + ex.error = error; throw ex; } |