Mercurial > pidgin
changeset 20565:dc08f2fa9a66
merge of '24d76e86b06c5b1ab5f0a3ea37bd69ced034e0d0'
and '9c6a035630926fd407c6bee96f297147920c7365'
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Thu, 20 Sep 2007 02:41:42 +0000 |
parents | f34ffa69fdce (diff) be996322b2c3 (current diff) |
children | 3ef40e8de6ab |
files | |
diffstat | 2 files changed, 3 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/yahoo/yahoo_filexfer.c Wed Sep 19 22:21:22 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo_filexfer.c Thu Sep 20 02:41:42 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);