Actually store the return value of curl_easy_send, oops

This commit is contained in:
Tamás Bálint Misius 2021-06-03 21:25:28 +02:00
parent 1a06f5ba48
commit 7cfc5aa9f6
No known key found for this signature in database
GPG Key ID: 5B472A12F6ECA9F2

View File

@ -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)