This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 48b91d6dea0ab0030aa8b22cd6cdcbd42caa8116 Author: Mark Thomas <[email protected]> AuthorDate: Sun Feb 4 16:44:26 2024 +0000 Align with 10.1.x --- java/org/apache/catalina/startup/HostConfig.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/java/org/apache/catalina/startup/HostConfig.java b/java/org/apache/catalina/startup/HostConfig.java index 2e9e5fc59e..e434c096d6 100644 --- a/java/org/apache/catalina/startup/HostConfig.java +++ b/java/org/apache/catalina/startup/HostConfig.java @@ -1352,10 +1352,12 @@ public class HostConfig implements LifecycleListener { } else { // There is a chance the the resource was only missing // temporarily eg renamed during a text editor save - try { - Thread.sleep(500); - } catch (InterruptedException e1) { - // Ignore + if (resource.exists() || !resource.getName().toLowerCase(Locale.ENGLISH).endsWith(".war")) { + try { + Thread.sleep(500); + } catch (InterruptedException e1) { + // Ignore + } } // Recheck the resource to see if it was really deleted if (resource.exists()) { --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
