changeset 25068:7bd420b3edb7

if(p2p_data->source >= 0) in place of if(p2p_data->source)
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Sat, 12 Jul 2008 18:33:15 +0000
parents fa462a39cd47
children 262ae5f56a9a
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Sat Jul 12 18:28:22 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Sat Jul 12 18:33:15 2008 +0000
@@ -2278,7 +2278,7 @@
 	if (f)
 		yahoo_friend_set_p2p_status(f, NOT_CONNECTED);
 
-	if(p2p_data->source)
+	if(p2p_data->source >= 0)
 		close(p2p_data->source);
 	purple_input_remove(p2p_data->input_event);
 	g_free(p2p_data->host_ip);