this time maybe?
This commit is contained in:
parent
d0e4356cdb
commit
09c1fb141b
1 changed files with 1 additions and 1 deletions
|
|
@ -123,7 +123,7 @@ int main(int argc, char **argv)
|
|||
// grab the data from the client, save to message.
|
||||
messageBytes = recv(fileIter, message, BUFFER_SIZE, 0);
|
||||
// make sure that the connection is still open before attempting to send.
|
||||
if(messageBytes <= 0)
|
||||
if(messageBytes == 0) // old: 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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue