changeset 26239:969b0e6f3f44

set fd to -1 initially, if not done, no p2p connection is initiated ever.
author Sulabh Mahajan <sulabh@soc.pidgin.im>
date Fri, 14 Nov 2008 07:07:43 +0000
parents 3e788c0db3a6
children e524694e3c06
files libpurple/protocols/yahoo/yahoo.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo.c	Wed Nov 12 10:23:13 2008 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Fri Nov 14 07:07:43 2008 +0000
@@ -3578,6 +3578,7 @@
 
 	purple_connection_set_display_name(gc, purple_account_get_username(account));
 
+	yd->yahoo_local_p2p_server_fd = -1;
 	yd->fd = -1;
 	yd->txhandler = 0;
 	/* TODO: Is there a good grow size for the buffer? */