aboutsummaryrefslogtreecommitdiff
path: root/lib/pop3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pop3.c')
-rw-r--r--lib/pop3.c4
1 files changed, 1 insertions, 3 deletions
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;