Skip to content

Commit 3bbd280

Browse files
sapiersapier
sapier
authored and
sapier
committedJan 10, 2014
Fix check for max_fd == -1 should actually be max_fd != -1
1 parent 9edb91d commit 3bbd280

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/httpfetch.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ class CurlFetchThread : public JThread
548548
if (select_timeout > 0) {
549549
// in Winsock it is forbidden to pass three empty
550550
// fd_sets to select(), so in that case use sleep_ms
551-
if (max_fd == -1) {
551+
if (max_fd != -1) {
552552
select_tv.tv_sec = select_timeout / 1000;
553553
select_tv.tv_usec = (select_timeout % 1000) * 1000;
554554
int retval = select(max_fd + 1, &read_fd_set,

0 commit comments

Comments
 (0)