comparison src/uicommon/gftpui.c @ 652:cb8ba8124e0e

2004-12-31 Brian Masney <masneyb@gftp.org> * src/uicommon/gftpui.c (gftpui_common_transfer_files) - check the return status of gftp_end_transfer() to see if there was an error closing the remote file
author masneyb
date Fri, 31 Dec 2004 15:33:01 +0000
parents 5f2808c65e46
children 8990a8a26ccf
comparison
equal deleted inserted replaced
651:5f2808c65e46 652:cb8ba8124e0e
1457 if (gftp_get_transfer_status (tdata, -1) == GFTP_ERETRYABLE) 1457 if (gftp_get_transfer_status (tdata, -1) == GFTP_ERETRYABLE)
1458 continue; 1458 continue;
1459 1459
1460 break; 1460 break;
1461 } 1461 }
1462 gftp_end_transfer (tdata->toreq); 1462
1463 1463 if (gftp_end_transfer (tdata->toreq) == 0)
1464 tdata->fromreq->logging_function (gftp_logging_misc, 1464 {
1465 tdata->fromreq, 1465 tdata->fromreq->logging_function (gftp_logging_misc,
1466 _("Successfully transferred %s at %.2f KB/s\n"), 1466 tdata->fromreq,
1467 curfle->file, tdata->kbs); 1467 _("Successfully transferred %s at %.2f KB/s\n"),
1468 curfle->file, tdata->kbs);
1469 }
1470 else
1471 {
1472 tdata->fromreq->logging_function (gftp_logging_error,
1473 tdata->fromreq,
1474 _("There was an error transfering the file %s"),
1475 curfle->file);
1476 }
1468 } 1477 }
1469 1478
1470 gftp_lookup_request_option (tdata->fromreq, "preserve_permissions", 1479 gftp_lookup_request_option (tdata->fromreq, "preserve_permissions",
1471 &preserve_permissions); 1480 &preserve_permissions);
1472 gftp_lookup_request_option (tdata->fromreq, "preserve_time", 1481 gftp_lookup_request_option (tdata->fromreq, "preserve_time",