From 7dfdd3924067e900caedb1c4cc2ca1a6129df516 Mon Sep 17 00:00:00 2001 From: hns Date: Tue, 17 Sep 2002 22:44:51 +0000 Subject: [PATCH] Slightly tweaked update check routines. --- src/helma/framework/core/TypeManager.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/helma/framework/core/TypeManager.java b/src/helma/framework/core/TypeManager.java index 9db81755..1686d145 100644 --- a/src/helma/framework/core/TypeManager.java +++ b/src/helma/framework/core/TypeManager.java @@ -111,7 +111,7 @@ public final class TypeManager { // if prototype doesn't exist, create it if (proto == null) { // leave out ".." and other directories that contain "." - if (list[i].isDirectory () && isValidTypeName (filename)) { + if (filename.indexOf ('.') < 0 && list[i].isDirectory () && isValidTypeName (filename)) { // create new prototype proto = new Prototype (filename, app); registerPrototype (filename, list[i], proto); @@ -225,13 +225,13 @@ public final class TypeManager { if (proto == null) return; // if prototype has been checked in the last 1.5 seconds, return - if (System.currentTimeMillis() - proto.getLastCheck() < 1500) - return; + // if (System.currentTimeMillis() - proto.getLastCheck() < 2500) + // return; synchronized (proto) { // check again because another thread may have checked the // prototype while we were waiting for access to the synchronized section - if (System.currentTimeMillis() - proto.getLastCheck() < 1500) + if (System.currentTimeMillis() - proto.getLastCheck() < 1000) return; File dir = new File (appDir, proto.getName());