Skip to content

Commit

Permalink
Fix check for max_fd == -1 should actually be max_fd != -1
Browse files Browse the repository at this point in the history
  • Loading branch information
sapier authored and sapier committed Jan 10, 2014
1 parent 9edb91d commit 3bbd280
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/httpfetch.cpp
Expand Up @@ -548,7 +548,7 @@ class CurlFetchThread : public JThread
if (select_timeout > 0) {
// in Winsock it is forbidden to pass three empty
// fd_sets to select(), so in that case use sleep_ms
if (max_fd == -1) {
if (max_fd != -1) {
select_tv.tv_sec = select_timeout / 1000;
select_tv.tv_usec = (select_timeout % 1000) * 1000;
int retval = select(max_fd + 1, &read_fd_set,
Expand Down

0 comments on commit 3bbd280

Please sign in to comment.