Licensing fixes for long updating intervals
This commit is contained in:
parent
5000afe768
commit
6a68d86a0e
1 changed files with 1 additions and 1 deletions
|
@ -177,7 +177,7 @@ namespace Controller{
|
|||
}
|
||||
|
||||
void licenseLoop(void * np){
|
||||
unsigned long now = Util::epoch();
|
||||
unsigned long now = std::min(Util::epoch(), currentLicense["valid_from"].asInt());
|
||||
while (conf.is_active){
|
||||
if (Util::epoch() - now > currentLicense["interval"].asInt()){
|
||||
updateLicense();
|
||||
|
|
Loading…
Add table
Reference in a new issue