summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/dagger
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-03-05 08:20:36 -0500
committerJames Moger <james.moger@gitblit.com>2014-03-05 08:20:36 -0500
commitfc9feed538a8260c37a291ea52a1191ee0aa77aa (patch)
tree72871f5d1f2783c68de679379b1e5768f884469f /src/main/java/com/gitblit/dagger
parent9f50fd56848e8b5ff70eba7054035ecb1b2d9a36 (diff)
downloadgitblit-fc9feed538a8260c37a291ea52a1191ee0aa77aa.tar.gz
gitblit-fc9feed538a8260c37a291ea52a1191ee0aa77aa.zip
Remove Dagger injector from the servlet context instead of nulling it
Diffstat (limited to 'src/main/java/com/gitblit/dagger')
-rw-r--r--src/main/java/com/gitblit/dagger/DaggerContext.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/dagger/DaggerContext.java b/src/main/java/com/gitblit/dagger/DaggerContext.java
index 28ee25d3..0e6a3fc4 100644
--- a/src/main/java/com/gitblit/dagger/DaggerContext.java
+++ b/src/main/java/com/gitblit/dagger/DaggerContext.java
@@ -61,7 +61,7 @@ public abstract class DaggerContext implements ServletContextListener {
@Override
public final void contextDestroyed(ServletContextEvent contextEvent) {
ServletContext context = contextEvent.getServletContext();
- context.setAttribute(INJECTOR_NAME, null);
+ context.removeAttribute(INJECTOR_NAME);
destroyContext(context);
}
}