mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-26 09:24:28 +02:00
Actually store the return value of curl_easy_send, oops
This commit is contained in:
@@ -205,7 +205,7 @@ namespace LuaTCPSocket
|
|||||||
CURLcode res = CURLE_OK;
|
CURLcode res = CURLE_OK;
|
||||||
if (!tcps->writeClosed)
|
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;
|
writtenTotal += writtenNow;
|
||||||
if (writtenTotal >= len)
|
if (writtenTotal >= len)
|
||||||
|
Reference in New Issue
Block a user