This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch 10.1.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit ee7012fd35e6f651dba1b1d133bca81968f267a2 Author: Mark Thomas <ma...@apache.org> AuthorDate: Sun Feb 4 16:37:39 2024 +0000 Align with 11.0.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 504ae72ef8..c543abb445 100644 --- a/java/org/apache/catalina/startup/HostConfig.java +++ b/java/org/apache/catalina/startup/HostConfig.java @@ -1397,10 +1397,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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org