diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-08 23:25:04 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-08 23:25:04 +0000 |
commit | f691f9609c314c794cf51b9b906ca8fc4f553a73 (patch) | |
tree | 2823a7c696246d243ea56aced8480edba9cd02d5 /lib/imap.c | |
parent | e5bb4e86ac35b84b87bf6e085859053db9136245 (diff) |
email: Tidied up the *_regular_transfer() functions
Added comments and simplified convoluted dophase_done comparison.
Diffstat (limited to 'lib/imap.c')
-rw-r--r-- | lib/imap.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/imap.c b/lib/imap.c index 136d64379..6ce6b12ec 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -2222,20 +2222,18 @@ static CURLcode imap_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 = imap_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 = imap_dophase_done(conn, connected); - } return result; } |