mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
valgrind dont close things directly in the callback
Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
parent
93f98d748d
commit
310655bf27
1 changed files with 1 additions and 2 deletions
|
@ -150,8 +150,7 @@ callback_lws_mirror(struct libwebsocket_context *context,
|
|||
mirror_lifetime--;
|
||||
if (!mirror_lifetime) {
|
||||
fprintf(stderr, "closing mirror session\n");
|
||||
libwebsocket_close_and_free_session(context,
|
||||
wsi_mirror, LWS_CLOSE_STATUS_GOINGAWAY);
|
||||
return -1;
|
||||
} else
|
||||
/* get notified as soon as we can write again */
|
||||
libwebsocket_callback_on_writable(context, wsi);
|
||||
|
|
Loading…
Add table
Reference in a new issue