aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/socket.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp
index ce16794..77485aa 100644
--- a/src/socket.cpp
+++ b/src/socket.cpp
@@ -203,6 +203,8 @@ size_t Bu::Socket::read( void *pBuf, size_t nBytes )
203#endif 203#endif
204 if( nRead < 0 ) 204 if( nRead < 0 )
205 { 205 {
206 if( errno == EAGAIN )
207 return 0;
206 throw SocketException( SocketException::cRead, strerror(errno) ); 208 throw SocketException( SocketException::cRead, strerror(errno) );
207 } 209 }
208 return nRead; 210 return nRead;