[or-cvs] [ernie/master 2/3] Database connection closed after execution.
karsten at torproject.org
karsten at torproject.org
Mon May 31 08:28:47 UTC 2010
Author: Kevin Berry <xckjb88 at gmail.com>
Date: Fri, 28 May 2010 18:59:21 -0400
Subject: Database connection closed after execution.
Commit: 7439eeb9decc1ae03331ad8f21c1bc455961ae0e
---
src/Main.java | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/Main.java b/src/Main.java
index 16ec313..f1ace5f 100644
--- a/src/Main.java
+++ b/src/Main.java
@@ -187,6 +187,11 @@ public class Main {
// Remove lock file
lf.releaseLock();
+ // Close database connection (if active)
+ if (config.getWriteRelayDescriptorDatabase()) {
+ rddi.closeConnection();
+ }
+
logger.info("Terminating ERNIE.");
}
}
--
1.6.5
More information about the tor-commits
mailing list