Skip to content
Snippets Groups Projects
Commit 9b4ec141 authored by Nikolaus Krismer's avatar Nikolaus Krismer
Browse files

reworked initConnection (otherwise a closed connection could be

returned)
parent bc6e7ec4
No related branches found
No related tags found
No related merge requests found
...@@ -653,10 +653,7 @@ public class Database { ...@@ -653,10 +653,7 @@ public class Database {
} }
protected void initConnection() { protected void initConnection() {
if (connection == null) { connection = ConfigIsochrone.getInstance().getConnection();
// lazy-loading of the database connection (so it is not created on object construction)
connection = ConfigIsochrone.getInstance().getConnection();
}
} }
protected Connection getConnection() { protected Connection getConnection() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment