Fix checkTime use (closes: #2515)

This commit is contained in:
Yadd 2021-04-24 16:04:23 +02:00
parent 2142b90caa
commit 96dbbd9ad4
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ sub checkMaintenanceMode {
$class->tsv->{defaultCondition}->{$vhost}
and (
time() - $class->tsv->{lastVhostUpdate}->{$vhost} <
$class->tsv->{checkTime} )
$class->checkTime )
);
return $class->Lemonldap::NG::Handler::Main::checkMaintenanceMode($req);

View File

@ -80,7 +80,7 @@ sub checkConf {
}
}
}
$class->tsv->{checkTime} = $conf->{checkTime} if ( $conf->{checkTime} );
$class->checkTime($conf->{checkTime}) if ( $conf->{checkTime} );
$class->lastCheck( time() );
$class->logger->debug("$class: configuration is up to date");
return 1;