Licensing fixes for long updating intervals

This commit is contained in:
Thulinma 2017-02-02 15:57:26 +01:00
parent 5000afe768
commit 6a68d86a0e

View file

@ -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();