From 67b6fa5f95e4e938ad0b0209d42c148ef29c04d2 Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Thu, 7 Mar 2013 18:21:58 +0000 Subject: email: Optimised block_statemach() functions Optimised the result test in each of the block_statemach() functions. --- lib/imap.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/imap.c') diff --git a/lib/imap.c b/lib/imap.c index 186ff63f6..66dede9db 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -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; -- cgit v1.2.3