context destroy just kill wsis ugh add missing bit

Unsaved file...

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2015-03-28 10:35:53 +08:00
parent 45a04b6240
commit bddb3dcce9

View file

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