#5657 Only check trial times when using a trial

This commit is contained in:
Andrew Nelless 2016-10-17 17:11:30 +01:00
parent 8b4d7abfb0
commit 599415f047
1 changed files with 8 additions and 5 deletions

View File

@ -59,9 +59,11 @@ SerialKey::isExpiring(time_t currentTime) const
{ {
bool result = false; bool result = false;
if (m_trial) {
if (m_warnTime <= currentTime && currentTime < m_expireTime) { if (m_warnTime <= currentTime && currentTime < m_expireTime) {
result = true; result = true;
} }
}
return result; return result;
} }
@ -71,10 +73,11 @@ SerialKey::isExpired(time_t currentTime) const
{ {
bool result = false; bool result = false;
if (m_trial) {
if (m_expireTime <= currentTime) { if (m_expireTime <= currentTime) {
result = true; result = true;
} }
}
return result; return result;
} }