Skip to content
Snippets Groups Projects
Commit 1799b02a authored by Andy Green's avatar Andy Green
Browse files

windows: POLLHUP is or-ed on other events

parent c83afc66
No related branches found
No related tags found
No related merge requests found
......@@ -258,9 +258,8 @@ _lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
networkevents.iErrorCode[FD_CONNECT_BIT] != WSAEINVAL) {
lwsl_debug("Unable to connect errno=%d\n",
networkevents.iErrorCode[FD_CONNECT_BIT]);
pfd->revents = LWS_POLLHUP;
} else
pfd->revents = (short)networkevents.lNetworkEvents;
pfd->revents |= LWS_POLLHUP;
}
if (pfd->revents & LWS_POLLOUT) {
wsi = wsi_from_fd(context, pfd->fd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment