Skip to content

Commit

Permalink
Merge branch 'bug_77'
Browse files Browse the repository at this point in the history
  • Loading branch information
karastojko committed Aug 24, 2020
2 parents d103241 + 17470d3 commit 247368a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/smtp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,11 @@ void smtp::connect()
{
string line = _dlg->receive();
tuple<int, bool, string> tokens = parse_line(line);
while (!std::get<1>(tokens))
{
line = _dlg->receive();
tokens = parse_line(line);
}
if (std::get<0>(tokens) != SERVICE_READY_STATUS)
throw smtp_error("Connection rejection.");
}
Expand Down

0 comments on commit 247368a

Please sign in to comment.