From 2b09905debccdceac0ccc4bc9f523e1861790abd Mon Sep 17 00:00:00 2001 From: Hugues Malphettes Date: Thu, 28 Jan 2010 05:59:21 +0000 Subject: [PATCH] fix trivial mistake that was breaking the hot-redeploy of contexts. git-svn-id: svn+ssh://dev.eclipse.org/svnroot/rt/org.eclipse.jetty/jetty/trunk@1221 7e9141cc-0065-0410-87d8-b60c137991c4 --- .../eclipse/jetty/deploy/providers/ScanningAppProvider.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java index 4a8a6bd1795..066b7776531 100644 --- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java +++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java @@ -66,6 +66,10 @@ public abstract class ScanningAppProvider extends AbstractLifeCycle implements A { Log.debug("changed ",filename); App app = _appMap.remove(filename); + if (app != null) + { + _deploymentManager.removeApp(app); + } app = ScanningAppProvider.this.createApp(filename); if (app != null) {