1
0
Fork 0
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:
Andy Green 2012-10-07 20:40:35 +08:00
parent 94c62c652c
commit fa3f405d1d

View file

@ -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;
}
/*