Skip to content
Snippets Groups Projects
Commit 254b1f75 authored by Raphael GIRARDOT's avatar Raphael GIRARDOT
Browse files

close connection before initializing a new one

parent 51e7f550
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,7 @@ public final class DbProxy {
if (manager != null) {
manager.closeConnection();
if (inserter instanceof HDBOracleAttributeInsert) {
((HDBOracleAttributeInsert) inserter).closeConnections();
((HDBOracleAttributeInsert) inserter).closeConnection();
}
}
}
......
......@@ -625,6 +625,9 @@ public class HdbArchiver extends DeviceImpl implements TangoConst {
HdbTdbConnectionParameters.printHDBConnectionInfoLog();
if (dbProxy != null) {
dbProxy.closeConnection();
}
dbProxy = new DbProxy(dbHost, dbName, dbSchema, dbUser, dbPassword, isRac, logger);
// setControlMode(safetyPeriod);
// start archiving in a thread
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment