comparison libpurple/protocols/oscar/odc.c @ 17448:648551e3243a

Only check for EAGAIN if send returns -1, not when it returns 0
author Mark Doliner <mark@kingant.net>
date Sun, 03 Jun 2007 19:04:22 +0000
parents 24bbd7e46bfe
children 16bdcffb1c62
comparison
equal deleted inserted replaced
17447:3522a4cda52f 17448:648551e3243a
445 { 445 {
446 peer_connection_destroy(conn, OSCAR_DISCONNECT_REMOTE_CLOSED, NULL); 446 peer_connection_destroy(conn, OSCAR_DISCONNECT_REMOTE_CLOSED, NULL);
447 return; 447 return;
448 } 448 }
449 449
450 if (read == -1) 450 if (read < 0)
451 { 451 {
452 if ((errno == EAGAIN) || (errno == EWOULDBLOCK)) 452 if ((errno == EAGAIN) || (errno == EWOULDBLOCK))
453 /* No worries */ 453 /* No worries */
454 return; 454 return;
455 455