[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [ernie/master 2/3] Database connection closed after execution.



Author: Kevin Berry <xckjb88@xxxxxxxxx>
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