From bddb3dcce975b7ac9478038b555f8df16182cfaa Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 28 Mar 2015 10:35:53 +0800 Subject: [PATCH] context destroy just kill wsis ugh add missing bit Unsaved file... Signed-off-by: Andy Green --- lib/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/context.c b/lib/context.c index 7839afd1..23f0575c 100644 --- a/lib/context.c +++ b/lib/context.c @@ -310,7 +310,7 @@ libwebsocket_context_destroy(struct libwebsocket_context *context) if (!wsi) continue; libwebsocket_close_and_free_session(context, - wsi, LWS_CLOSE_STATUS_NOSTATUS /* no protocol close */); + wsi, LWS_CLOSE_STATUS_NOSTATUS_CONTEXT_DESTROY /* no protocol close */); n--; }