try again maybe?

This commit is contained in:
Charles Descamps 2025-02-19 19:58:52 -07:00
parent 63d91b2e5e
commit d0e4356cdb

View file

@ -125,6 +125,7 @@ int main(int argc, char **argv)
// make sure that the connection is still open before attempting to send. // make sure that the connection is still open before attempting to send.
if(messageBytes <= 0) if(messageBytes <= 0)
{ {
printf("\nmessageBytes: %d\n", messageBytes);
// if it is not open, close the socket and remove the socket from the socket list using FD_CLR() // if it is not open, close the socket and remove the socket from the socket list using FD_CLR()
close(fileIter); close(fileIter);
FD_CLR(fileIter, &socketList); FD_CLR(fileIter, &socketList);