coverity 169271 - take care about sockfd of -1 on close
This commit is contained in:
parent
2f863cf59a
commit
d8e051dd97
1 changed files with 2 additions and 1 deletions
|
@ -432,7 +432,8 @@ just_kill_connection:
|
|||
lws_remove_from_timeout_list(wsi);
|
||||
|
||||
/* checking return redundant since we anyway close */
|
||||
remove_wsi_socket_from_fds(wsi);
|
||||
if (wsi->sock != LWS_SOCK_INVALID)
|
||||
remove_wsi_socket_from_fds(wsi);
|
||||
|
||||
#if defined(LWS_WITH_ESP8266)
|
||||
espconn_disconnect(wsi->sock);
|
||||
|
|
Loading…
Add table
Reference in a new issue