1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fix clean return path user code handle

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2013-10-18 19:23:06 +08:00
parent 1f4267bda8
commit 0c0bf4a985

View file

@ -182,7 +182,7 @@ handle_truncated_send:
}
if (n < len) {
if (wsi->u.ws.clean_buffer) {
if (wsi->u.ws.clean_buffer)
/*
* This buffer unaffected by extension rewriting.
* It means the user code is expected to deal with
@ -190,7 +190,7 @@ handle_truncated_send:
* sent, so on next send will just resume sending
* payload)
*/
}
return n;
/*
* Newly truncated send. Buffer the remainder (it will get