forked from LogBlock/LogBlock
Closed consumer connection as well.
This commit is contained in:
@@ -105,6 +105,8 @@ public class Consumer implements Runnable
|
|||||||
LogBlock.log.log(Level.SEVERE, "[LogBlock Consumer] SQL exception", ex);
|
LogBlock.log.log(Level.SEVERE, "[LogBlock Consumer] SQL exception", ex);
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
|
if (conn != null)
|
||||||
|
conn.close();
|
||||||
if (state != null)
|
if (state != null)
|
||||||
state.close();
|
state.close();
|
||||||
} catch (SQLException ex) {
|
} catch (SQLException ex) {
|
||||||
|
Reference in New Issue
Block a user