mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Close database connection before sleeping
This commit is contained in:
parent
8e773d92c1
commit
38ade4e985
1 changed files with 1 additions and 1 deletions
|
@ -52,11 +52,11 @@ public class MessageSendLogStore implements AutoCloseable {
|
|||
while (true) {
|
||||
try (final var connection = database.getConnection()) {
|
||||
deleteOutdatedEntries(connection);
|
||||
Thread.sleep(interval);
|
||||
} catch (SQLException e) {
|
||||
logger.warn("Deleting outdated entries failed");
|
||||
break;
|
||||
}
|
||||
Thread.sleep(interval);
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
logger.debug("Stopping msl cleanup thread");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue