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/pop3.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/pop3.c') diff --git a/lib/pop3.c b/lib/pop3.c index d809b488a..1924ece46 100644 --- a/lib/pop3.c +++ b/lib/pop3.c @@ -1262,10 +1262,8 @@ static CURLcode pop3_block_statemach(struct connectdata *conn) CURLcode result = CURLE_OK; struct pop3_conn *pop3c = &conn->proto.pop3c; - while(pop3c->state != POP3_STOP) { + while(pop3c->state != POP3_STOP && !result) { result = Curl_pp_statemach(&pop3c->pp, TRUE); - if(result) - break; } return result; -- cgit v1.2.3