From 3156f36bc53c6f59ebf98599643b46847b277cb0 Mon Sep 17 00:00:00 2001 From: James Moger Date: Thu, 18 Apr 2013 07:42:56 -0400 Subject: [PATCH] Null out GitDaemon if it fails to start --- src/main/java/com/gitblit/GitBlit.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gitblit/GitBlit.java b/src/main/java/com/gitblit/GitBlit.java index bbf5d9a5..7f255ab0 100644 --- a/src/main/java/com/gitblit/GitBlit.java +++ b/src/main/java/com/gitblit/GitBlit.java @@ -3234,6 +3234,7 @@ public class GitBlit implements ServletContextListener { gitDaemon.start(); logger.info(MessageFormat.format("Git daemon is listening on {0}:{1,number,0}", bindInterface, port)); } catch (IOException e) { + gitDaemon = null; logger.error(MessageFormat.format("Failed to start Git daemon on {0}:{1,number,0}", bindInterface, port), e); } } -- 2.39.5