forked from LogBlock/LogBlock
Fixed reconnecting after MySQL disconnect
This commit is contained in:
@@ -322,6 +322,7 @@ public class Consumer extends TimerTask
|
|||||||
try {
|
try {
|
||||||
if (state != null)
|
if (state != null)
|
||||||
state.close();
|
state.close();
|
||||||
|
if (conn != null)
|
||||||
conn.close();
|
conn.close();
|
||||||
} catch (final SQLException ex) {
|
} catch (final SQLException ex) {
|
||||||
log.log(Level.SEVERE, "[LogBlock Consumer] SQL exception on close", ex);
|
log.log(Level.SEVERE, "[LogBlock Consumer] SQL exception on close", ex);
|
||||||
|
Reference in New Issue
Block a user