This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

#5657 Only check trial times when using a trial

  • Loading branch information...
nlyan committed Oct 17, 2016
1 parent 8b4d7ab commit 599415f0473611cf56c38d9d3735a2a9c6f8df28
Showing with 8 additions and 5 deletions.
  1. +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

Please sign in to comment.