win32select: print an error in case of failure

(cherry picked from commit 8882f4fd60aa61fe1caf8b372989427a9872c3b9)
This commit is contained in:
Azat Khuzhin 2019-01-29 07:56:21 +03:00
parent 3ebd7edd02
commit 1d9319c7fb
No known key found for this signature in database
GPG Key ID: B86086848EF8686D

View File

@ -326,6 +326,8 @@ win32_dispatch(struct event_base *base, struct timeval *tv)
event_debug(("%s: select returned %d", __func__, res));
if (res <= 0) {
event_debug(("%s: %s", __func__,
evutil_socket_error_to_string(EVUTIL_SOCKET_ERROR())));
return res;
}