diff options
author | James Moger <james.moger@gitblit.com> | 2014-12-03 14:42:10 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-12-03 14:42:10 -0500 |
commit | d316f8749213af7f25610ce6a7b8cb1391218fde (patch) | |
tree | 989629db897feda166ee61619c6ad5044f03cf34 | |
parent | ad2c0a2b8323fb0f2c7f779a717b342ad35fad2b (diff) | |
download | gitblit-d316f8749213af7f25610ce6a7b8cb1391218fde.tar.gz gitblit-d316f8749213af7f25610ce6a7b8cb1391218fde.zip |
Use startManager(X) from startManager(Injector, Class)
-rw-r--r-- | src/main/java/com/gitblit/servlet/GitblitContext.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/gitblit/servlet/GitblitContext.java b/src/main/java/com/gitblit/servlet/GitblitContext.java index 85b47205..077624c2 100644 --- a/src/main/java/com/gitblit/servlet/GitblitContext.java +++ b/src/main/java/com/gitblit/servlet/GitblitContext.java @@ -261,9 +261,7 @@ public class GitblitContext extends GuiceServletContextListener { protected <X extends IManager> X startManager(Injector injector, Class<X> clazz) { X x = loadManager(injector, clazz); logManager(clazz); - x.start(); - managers.add(x); - return x; + return startManager(x); } protected <X extends IManager> X startManager(X x) { |