Commit c02449ca authored by Steve Holme's avatar Steve Holme
Browse files

pop3_doing: Applied debug info message when function fails

Applied the same debug message as used in smtp_doing() and imap_doing()
when pop3_multi_statemach() fails.
parent 15765484
Loading
Loading
Loading
Loading
+8 −5
Original line number Diff line number Diff line
@@ -1550,14 +1550,17 @@ static CURLcode pop3_dophase_done(struct connectdata *conn, bool connected)
/* Called from multi.c while DOing */
static CURLcode pop3_doing(struct connectdata *conn, bool *dophase_done)
{
  CURLcode result;
  result = pop3_multi_statemach(conn, dophase_done);
  CURLcode result = pop3_multi_statemach(conn, dophase_done);

  if(!result && *dophase_done) {
  if(result)
    DEBUGF(infof(conn->data, "DO phase failed\n"));
  else {
    if(*dophase_done) {
      result = pop3_dophase_done(conn, FALSE /* not connected */);

      DEBUGF(infof(conn->data, "DO phase is complete\n"));
    }
  }

  return result;
}