diff options
author | James Moger <james.moger@gitblit.com> | 2013-04-18 07:42:56 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-04-18 07:42:56 -0400 |
commit | 3156f36bc53c6f59ebf98599643b46847b277cb0 (patch) | |
tree | 8c65d9ef88b030816367395e4a7ec2d32b78fe35 | |
parent | 4065058ab87d1996d879e5dfc0a2131a7726082c (diff) | |
download | gitblit-3156f36bc53c6f59ebf98599643b46847b277cb0.tar.gz gitblit-3156f36bc53c6f59ebf98599643b46847b277cb0.zip |
Null out GitDaemon if it fails to start
-rw-r--r-- | src/main/java/com/gitblit/GitBlit.java | 1 |
1 files changed, 1 insertions, 0 deletions
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);
}
}
|