aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-01-24 22:25:54 +0000
committerMike Buland <eichlan@xagasoft.com>2007-01-24 22:25:54 +0000
commit9aad98489f7bbf78418dcba4a5faf673b58843cb (patch)
tree83fc55d3242c51763c8c28e125a9cf29b821d9ce /src
parentf587852db92f3a74f16cab04a983158f9baa2c0f (diff)
downloadlibbu++-9aad98489f7bbf78418dcba4a5faf673b58843cb.tar.gz
libbu++-9aad98489f7bbf78418dcba4a5faf673b58843cb.tar.bz2
libbu++-9aad98489f7bbf78418dcba4a5faf673b58843cb.tar.xz
libbu++-9aad98489f7bbf78418dcba4a5faf673b58843cb.zip
...this time?
Diffstat (limited to '')
-rw-r--r--src/connection.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index dbf2761..f382d82 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -236,7 +236,8 @@ int Connection::readInput()
236 fd_set rfds; 236 fd_set rfds;
237 FD_ZERO(&rfds); 237 FD_ZERO(&rfds);
238 FD_SET(nSocket, &rfds); 238 FD_SET(nSocket, &rfds);
239 int retval = select( nSocket+1, &rfds, NULL, NULL, NULL ); 239 struct timeval tv = { 0, 0 };
240 int retval = select( nSocket+1, &rfds, NULL, NULL, &tv );
240 if( retval == -1 ) 241 if( retval == -1 )
241 throw ConnectionException( 242 throw ConnectionException(
242 excodeBadReadError, 243 excodeBadReadError,