plat win be robust against NULL wsi_from_fd 3
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
1064cd7619
commit
35fef0534b
1 changed files with 2 additions and 1 deletions
|
@ -199,7 +199,8 @@ lws_plat_service(struct libwebsocket_context *context, int timeout_ms)
|
|||
|
||||
if (pfd->revents & LWS_POLLOUT) {
|
||||
wsi = wsi_from_fd(context, pfd->fd);
|
||||
wsi->sock_send_blocking = FALSE;
|
||||
if (wsi)
|
||||
wsi->sock_send_blocking = FALSE;
|
||||
}
|
||||
|
||||
return libwebsocket_service_fd(context, pfd);
|
||||
|
|
Loading…
Add table
Reference in a new issue