Fixed waitFor* methods in SmtpClient. Updated test data.

This commit is contained in:
Attila Tőkés 2014-02-16 18:42:33 +02:00
parent 45e6340ff3
commit f12e1b6512
2 changed files with 3 additions and 4 deletions

View File

@ -250,8 +250,8 @@ bool SmtpClient::waitForReadyConnected(int msec) {
if (isReadyConnected)
return true;
loop.exec();
QTimer::singleShot(msec, &loop, SLOT(quit()));
loop.exec();
return isReadyConnected;
}
@ -266,8 +266,8 @@ bool SmtpClient::waitForAuthenticated(int msec) {
if (isAuthenticated)
return true;
loop.exec();
QTimer::singleShot(msec, &loop, SLOT(quit()));
loop.exec();
return isAuthenticated;
}
@ -282,8 +282,8 @@ bool SmtpClient::waitForMailSent(int msec) {
if (isMailSent)
return true;
loop.exec();
QTimer::singleShot(msec, &loop, SLOT(quit()));
loop.exec();
return isMailSent;
}

View File

@ -3,7 +3,6 @@ smtp.gmail.com 465 2
smtp.gmail.com 587 3
smtp.mail.yahoo.com 25 1
smtp.mail.yahoo.com 465 2
smtp.dummysmtp.com 25 1
smtp.1and1.com 25 1
smtp.1and1.com 465 2
smtp.1and1.com 587 3