From: sapier Date: Fri, 10 Jan 2014 18:19:16 +0000 (+0100) Subject: Fix check for max_fd == -1 should actually be max_fd != -1 X-Git-Tag: 0.4.10~330 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3bbd280336dffc73ef43b2ac93937f320cb32872;p=oweals%2Fminetest.git Fix check for max_fd == -1 should actually be max_fd != -1 --- 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,