Fix checkTime use (closes: #2515)
This commit is contained in:
parent
2142b90caa
commit
96dbbd9ad4
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue