Fixed waitFor* methods in SmtpClient. Updated test data.
This commit is contained in:
parent
45e6340ff3
commit
f12e1b6512
@ -250,8 +250,8 @@ bool SmtpClient::waitForReadyConnected(int msec) {
|
|||||||
if (isReadyConnected)
|
if (isReadyConnected)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
loop.exec();
|
|
||||||
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
||||||
|
loop.exec();
|
||||||
|
|
||||||
return isReadyConnected;
|
return isReadyConnected;
|
||||||
}
|
}
|
||||||
@ -266,8 +266,8 @@ bool SmtpClient::waitForAuthenticated(int msec) {
|
|||||||
if (isAuthenticated)
|
if (isAuthenticated)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
loop.exec();
|
|
||||||
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
||||||
|
loop.exec();
|
||||||
|
|
||||||
return isAuthenticated;
|
return isAuthenticated;
|
||||||
}
|
}
|
||||||
@ -282,8 +282,8 @@ bool SmtpClient::waitForMailSent(int msec) {
|
|||||||
if (isMailSent)
|
if (isMailSent)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
loop.exec();
|
|
||||||
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
QTimer::singleShot(msec, &loop, SLOT(quit()));
|
||||||
|
loop.exec();
|
||||||
|
|
||||||
return isMailSent;
|
return isMailSent;
|
||||||
}
|
}
|
||||||
|
@ -3,7 +3,6 @@ smtp.gmail.com 465 2
|
|||||||
smtp.gmail.com 587 3
|
smtp.gmail.com 587 3
|
||||||
smtp.mail.yahoo.com 25 1
|
smtp.mail.yahoo.com 25 1
|
||||||
smtp.mail.yahoo.com 465 2
|
smtp.mail.yahoo.com 465 2
|
||||||
smtp.dummysmtp.com 25 1
|
|
||||||
smtp.1and1.com 25 1
|
smtp.1and1.com 25 1
|
||||||
smtp.1and1.com 465 2
|
smtp.1and1.com 465 2
|
||||||
smtp.1and1.com 587 3
|
smtp.1and1.com 587 3
|
||||||
|
Loading…
Reference in New Issue
Block a user