aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-08 23:25:04 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-08 23:25:04 +0000
commitf691f9609c314c794cf51b9b906ca8fc4f553a73 (patch)
tree2823a7c696246d243ea56aced8480edba9cd02d5 /lib/pop3.c
parente5bb4e86ac35b84b87bf6e085859053db9136245 (diff)
email: Tidied up the *_regular_transfer() functions
Added comments and simplified convoluted dophase_done comparison.
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/pop3.c b/lib/pop3.c
index 28a359ebe..4c008cafb 100644
--- a/lib/pop3.c
+++ b/lib/pop3.c
@@ -1594,20 +1594,18 @@ static CURLcode pop3_regular_transfer(struct connectdata *conn,
/* Make sure size is unknown at this point */
data->req.size = -1;
+ /* Set the progress data */
Curl_pgrsSetUploadCounter(data, 0);
Curl_pgrsSetDownloadCounter(data, 0);
Curl_pgrsSetUploadSize(data, 0);
Curl_pgrsSetDownloadSize(data, 0);
+ /* Carry out the perform */
result = pop3_perform(conn, &connected, dophase_done);
- if(!result) {
- if(!*dophase_done)
- /* The DO phase has not completed yet */
- return CURLE_OK;
-
+ /* Perform post DO phase operations if necessary */
+ if(!result && *dophase_done)
result = pop3_dophase_done(conn, connected);
- }
return result;
}