diff 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
line wrap: on
line diff
--- a/libpurple/protocols/oscar/odc.c	Sun Jun 03 18:36:54 2007 +0000
+++ b/libpurple/protocols/oscar/odc.c	Sun Jun 03 19:04:22 2007 +0000
@@ -447,7 +447,7 @@
 		return;
 	}
 
-	if (read == -1)
+	if (read < 0)
 	{
 		if ((errno == EAGAIN) || (errno == EWOULDBLOCK))
 			/* No worries */