email: Optimised block_statemach() functions

Optimised the result test in each of the block_statemach() functions.
This commit is contained in:
Steve Holme 2013-03-07 18:21:58 +00:00
parent 3df1e35838
commit 67b6fa5f95
3 changed files with 3 additions and 9 deletions

View file

@ -1685,10 +1685,8 @@ static CURLcode imap_block_statemach(struct connectdata *conn)
CURLcode result = CURLE_OK;
struct imap_conn *imapc = &conn->proto.imapc;
while(imapc->state != IMAP_STOP) {
while(imapc->state != IMAP_STOP && !result) {
result = Curl_pp_statemach(&imapc->pp, TRUE);
if(result)
break;
}
return result;