diff options
| -rw-r--r-- | src/connection.cpp | 3 |
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, |
