projects
/
platform
/
upstream
/
libwebsockets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93f98d7
)
valgrind dont close things directly in the callback
author
Andy Green
<andy.green@linaro.org>
Mon, 11 Feb 2013 06:08:50 +0000
(14:08 +0800)
committer
Andy Green
<andy.green@linaro.org>
Mon, 11 Feb 2013 06:08:50 +0000
(14:08 +0800)
Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-client.c
patch
|
blob
|
history
diff --git
a/test-server/test-client.c
b/test-server/test-client.c
index
3d98879
..
7b36de9
100644
(file)
--- a/
test-server/test-client.c
+++ b/
test-server/test-client.c
@@
-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);