Permalink
Browse files
#5657 Only check trial times when using a trial
- Loading branch information...
Showing
with
8 additions
and
5 deletions.
-
+8
−5
src/lib/shared/SerialKey.cpp
|
|
@@ -59,8 +59,10 @@ SerialKey::isExpiring(time_t currentTime) const |
|
|
{
|
|
|
bool result = false;
|
|
|
|
|
|
- if (m_warnTime <= currentTime && currentTime < m_expireTime) {
|
|
|
- result = true;
|
|
|
+ if (m_trial) {
|
|
|
+ if (m_warnTime <= currentTime && currentTime < m_expireTime) {
|
|
|
+ result = true;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
return result;
|
|
|
@@ -71,11 +73,12 @@ SerialKey::isExpired(time_t currentTime) const |
|
|
{
|
|
|
bool result = false;
|
|
|
|
|
|
- if (m_expireTime <= currentTime) {
|
|
|
- result = true;
|
|
|
+ if (m_trial) {
|
|
|
+ if (m_expireTime <= currentTime) {
|
|
|
+ result = true;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|
0 comments on commit
599415f