changeset 27117:e6eee2b3417c

Pass a handle to purple_proxy_connect() when making this connection. This causes the proxy attempt to be canceled and freed if the user signs off before the connection is established.
author Mark Doliner <mark@kingant.net>
date Thu, 18 Jun 2009 22:40:12 +0000
parents d3b6776186ce
children a9899d234dfa
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	Thu Jun 18 22:21:59 2009 +0000
+++ b/libpurple/protocols/yahoo/yahoo.c	Thu Jun 18 22:40:12 2009 +0000
@@ -2647,7 +2647,7 @@
 		p2p_data->source = -1;
 
 		/* connect to host */
-		if((purple_proxy_connect(NULL, account, host_ip, YAHOO_PAGER_PORT_P2P, yahoo_p2p_init_cb, p2p_data))==NULL) {
+		if((purple_proxy_connect(gc, account, host_ip, YAHOO_PAGER_PORT_P2P, yahoo_p2p_init_cb, p2p_data))==NULL) {
 			purple_debug_info("yahoo","p2p: Connection to %s failed\n", host_ip);
 			g_free(p2p_data->host_ip);
 			g_free(p2p_data->host_username);