From 7cfc5aa9f6e8cb099c946b920d44989d4f863498 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20B=C3=A1lint=20Misius?= Date: Thu, 3 Jun 2021 21:25:28 +0200 Subject: [PATCH] Actually store the return value of curl_easy_send, oops --- src/lua/LuaTCPSocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lua/LuaTCPSocket.cpp b/src/lua/LuaTCPSocket.cpp index 294cfa6aa..521ed7f89 100644 --- a/src/lua/LuaTCPSocket.cpp +++ b/src/lua/LuaTCPSocket.cpp @@ -205,7 +205,7 @@ namespace LuaTCPSocket CURLcode res = CURLE_OK; if (!tcps->writeClosed) { - curl_easy_send(tcps->easy, &data[writtenTotal], len - writtenTotal, &writtenNow); + res = curl_easy_send(tcps->easy, &data[writtenTotal], len - writtenTotal, &writtenNow); } writtenTotal += writtenNow; if (writtenTotal >= len)