summaryrefslogtreecommitdiff
path: root/src/httpfetch.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-01-10 19:19:16 +0100
committersapier <Sapier at GMX dot net>2014-01-10 19:19:16 +0100
commit3bbd280336dffc73ef43b2ac93937f320cb32872 (patch)
treed06ad9848ea0be24622fc9bd6980059040d45570 /src/httpfetch.cpp
parent9edb91da5754cf194637d1d7faa513719b61f9b4 (diff)
downloadminetest-3bbd280336dffc73ef43b2ac93937f320cb32872.tar.gz
minetest-3bbd280336dffc73ef43b2ac93937f320cb32872.tar.bz2
minetest-3bbd280336dffc73ef43b2ac93937f320cb32872.zip
Fix check for max_fd == -1 should actually be max_fd != -1
Diffstat (limited to 'src/httpfetch.cpp')
-rw-r--r--src/httpfetch.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/httpfetch.cpp b/src/httpfetch.cpp
index 176a3b22a..3d9447358 100644
--- a/src/httpfetch.cpp
+++ b/src/httpfetch.cpp
@@ -548,7 +548,7 @@ protected:
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,