libpurple/protocols/yahoo/yahoo_filexfer.c

branch
release-2.2.1
changeset 20104
fdf15ac30806
parent 19859
71d37b57eff2
child 20065
536822f0bc01
child 20150
760aa4bea7c6
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c	Fri Sep 28 15:36:48 2007 +0000
+++ b/libpurple/protocols/yahoo/yahoo_filexfer.c	Fri Sep 28 15:37:10 2007 +0000
@@ -281,13 +281,9 @@
 			}
 		}
 	} else {
-		/* TODO: Using xfer->fd like this is probably a bad thing... */
+		xfer->fd = -1;
 		if (purple_proxy_connect(NULL, account, xfer_data->host, xfer_data->port,
-		                              yahoo_receivefile_connected, xfer) == NULL)
-			xfer->fd = -1;
-		else
-			xfer->fd = 0;
-		if (xfer->fd == -1) {
+		                              yahoo_receivefile_connected, xfer) == NULL) {
 			purple_notify_error(gc, NULL, _("File Transfer Failed"),
 			             _("Unable to establish file descriptor."));
 			purple_xfer_cancel_remote(xfer);

mercurial