forked from LogBlock/LogBlock
Fixed reconnecting after MySQL disconnect
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user