allow the timestamper to be started up while disabled

This commit is contained in:
jrandom
2004-07-23 18:19:40 +00:00
committed by zzz
parent 834fb7e317
commit 008795770f

View File

@ -34,11 +34,12 @@ public class Timestamper implements Runnable {
if (_log.shouldLog(Log.INFO))
_log.info("Starting timestamper pointing at " + _targetURL);
synchronized (Timestamper.class) {
String enabled = System.getProperty("timestamper.enabled");
String enabled = System.getProperty("timestamper.started");
if (enabled != null) {
_log.warn("Timestamper already running");
return;
} else {
System.setProperty("timestamper.started", "true");
System.setProperty("timestamper.enabled", "true");
}
}