mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
fix-client-close.patch
Signed-off-by: Andy Green <andy@warmcat.com>
This commit is contained in:
parent
864d9026a8
commit
d655cb4f82
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ libwebsocket_client_close(struct libwebsocket *wsi)
|
|||
while (n < clients->fds_count - 1) {
|
||||
clients->fds[n] = clients->fds[n + 1];
|
||||
clients->wsi[n] = clients->wsi[n + 1];
|
||||
n++;
|
||||
}
|
||||
/* we only have to deal with one */
|
||||
n = clients->fds_count;
|
||||
|
|
Loading…
Add table
Reference in a new issue