]> source.dussan.org Git - gitblit.git/commitdiff
Use startManager(X) from startManager(Injector, Class) 27/227/1
authorJames Moger <james.moger@gitblit.com>
Wed, 3 Dec 2014 19:42:10 +0000 (14:42 -0500)
committerJames Moger <james.moger@gitblit.com>
Wed, 3 Dec 2014 19:42:10 +0000 (14:42 -0500)
src/main/java/com/gitblit/servlet/GitblitContext.java

index 85b472051a922c8110d1dcba9e3654edf7ee448a..077624c2e5db638e67892b421f8cb18546efc5a9 100644 (file)
@@ -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) {