summaryrefslogtreecommitdiffstats
path: root/org
diff options
context:
space:
mode:
Diffstat (limited to 'org')
-rw-r--r--org/madore/damlengine/WeblogDatabaseConnection.java2
-rw-r--r--org/madore/damlengine/WeblogServlet.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org/madore/damlengine/WeblogDatabaseConnection.java b/org/madore/damlengine/WeblogDatabaseConnection.java
index 16d0973..dfacebb 100644
--- a/org/madore/damlengine/WeblogDatabaseConnection.java
+++ b/org/madore/damlengine/WeblogDatabaseConnection.java
@@ -21,7 +21,7 @@ public final class WeblogDatabaseConnection {
public static Connection getConnection()
throws SQLException {
Connection conn = pconn.get();
- if ( conn == null ) {
+ if ( conn == null || conn.isClosed() ) {
String dbHost = null;
if ( ! DamlEngine.runAsServlet )
dbHost = System.getenv("DAMLENGINE_PGHOST");
diff --git a/org/madore/damlengine/WeblogServlet.java b/org/madore/damlengine/WeblogServlet.java
index c5ace1f..0e0ebe4 100644
--- a/org/madore/damlengine/WeblogServlet.java
+++ b/org/madore/damlengine/WeblogServlet.java
@@ -34,7 +34,7 @@ import javax.servlet.http.HttpServletResponse;
public class WeblogServlet extends HttpServlet {
- private static final long serialVersionUID = 2014101201L;
+ private static final long serialVersionUID = 2014101202L;
@Override
public void init(ServletConfig cfg)