From dcb590bd501dbd2980b691cd97c4a0c375cae3ed Mon Sep 17 00:00:00 2001 From: Falk Werner Date: Sun, 1 Jan 2023 12:32:21 +0100 Subject: [PATCH] fixed sending multiple pending messages --- src/webfuse/ws/server.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/webfuse/ws/server.cpp b/src/webfuse/ws/server.cpp index 51cecb1..aa9ad67 100644 --- a/src/webfuse/ws/server.cpp +++ b/src/webfuse/ws/server.cpp @@ -130,6 +130,10 @@ static int ws_server_callback(struct lws *wsi, enum lws_callback_reasons reason, int const rc = lws_write(data->connection, raw_data, size, LWS_WRITE_BINARY); } + if (has_more) + { + lws_callback_on_writable(data->connection); + } } break; default: