diff libpurple/protocols/msnp9/nexus.c @ 24808:98bbeed2481c

a patch from eperez that corrects EOF detection, Fixes #7726
author Ka-Hing Cheung <khc@hxbc.us>
date Thu, 18 Dec 2008 07:25:37 +0000
parents 1e7713b5e068
children
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/nexus.c	Thu Dec 18 06:28:36 2008 +0000
+++ b/libpurple/protocols/msnp9/nexus.c	Thu Dec 18 07:25:37 2008 +0000
@@ -168,7 +168,7 @@
 
 	if (len < 0 && errno == EAGAIN)
 		return;
-	else if (len < 0) {
+	else if (len <= 0) {
 		purple_input_remove(nexus->input_handler);
 		nexus->input_handler = 0;
 		g_free(nexus->read_buf);
@@ -415,7 +415,7 @@
 
 	if (len < 0 && errno == EAGAIN)
 		return;
-	else if (len < 0) {
+	else if (len <= 0) {
 		purple_input_remove(nexus->input_handler);
 		nexus->input_handler = 0;
 		g_free(nexus->read_buf);