Author: [log in to unmask]
Date: Tue Mar 29 19:19:34 2016
New Revision: 4335
Log:
Apply idle connection fix.
Modified:
java/branches/hps-modules-3.8-fix/evio/src/main/java/org/hps/evio/LCSimEngRunEventBuilder.java
Modified: java/branches/hps-modules-3.8-fix/evio/src/main/java/org/hps/evio/LCSimEngRunEventBuilder.java
=============================================================================
--- java/branches/hps-modules-3.8-fix/evio/src/main/java/org/hps/evio/LCSimEngRunEventBuilder.java (original)
+++ java/branches/hps-modules-3.8-fix/evio/src/main/java/org/hps/evio/LCSimEngRunEventBuilder.java Tue Mar 29 19:19:34 2016
@@ -121,6 +121,14 @@
} else {
LOGGER.info("Run manager is not initialized; TI time offset not available.");
}
+ /* Make sure connection is closed immediately. --JM */
+ try {
+ LOGGER.info("Closing run manager db connection ...");
+ RunManager.getRunManager().closeConnection();
+ LOGGER.info("Run manager db connection was closed.");
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
}
/**
|