diff options
author | James Moger <james.moger@gitblit.com> | 2014-03-05 08:20:36 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-03-05 08:20:36 -0500 |
commit | fc9feed538a8260c37a291ea52a1191ee0aa77aa (patch) | |
tree | 72871f5d1f2783c68de679379b1e5768f884469f /src/main/java/com/gitblit/dagger | |
parent | 9f50fd56848e8b5ff70eba7054035ecb1b2d9a36 (diff) | |
download | gitblit-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.java | 2 |
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); } } |