mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
stop being so fragile on socket lifecycle
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
94c62c652c
commit
fa3f405d1d
1 changed files with 2 additions and 2 deletions
|
@ -1508,7 +1508,7 @@ libwebsocket_service_fd(struct libwebsocket_context *context,
|
|||
wsi = wsi_from_fd(context, pollfd->fd);
|
||||
|
||||
if (wsi == NULL)
|
||||
return 1;
|
||||
return 0;
|
||||
|
||||
switch (wsi->mode) {
|
||||
case LWS_CONNMODE_SERVER_LISTENER:
|
||||
|
@ -2001,7 +2001,7 @@ bail3:
|
|||
if (!eff_buf.token_len) {
|
||||
libwebsocket_close_and_free_session(context, wsi,
|
||||
LWS_CLOSE_STATUS_NOSTATUS);
|
||||
return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue