Fixed reconnecting after MySQL disconnect

This commit is contained in:
Robin Kupper
2011-07-15 02:34:47 +02:00
parent 11b48a0093
commit fcb9949be2

View File

@@ -322,7 +322,8 @@ public class Consumer extends TimerTask
try {
if (state != null)
state.close();
conn.close();
if (conn != null)
conn.close();
} catch (final SQLException ex) {
log.log(Level.SEVERE, "[LogBlock Consumer] SQL exception on close", ex);
}