mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
win32select: print an error in case of failure
(cherry picked from commit 8882f4fd60aa61fe1caf8b372989427a9872c3b9)
This commit is contained in:
parent
3ebd7edd02
commit
1d9319c7fb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user