Actually store the return value of curl_easy_send, oops
This commit is contained in:
parent
1a06f5ba48
commit
7cfc5aa9f6
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user