valgrind dont close things directly in the callback

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-02-11 14:08:50 +08:00
parent 93f98d748d
commit 310655bf27

View file

@ -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);