Skip to content

Commit

Permalink
[backend] Improve IMAP perfs
Browse files Browse the repository at this point in the history
  • Loading branch information
damgouj committed Oct 1, 2024
1 parent 5ae1f28 commit bb76949
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,9 @@ private void retrySyncFolders() throws Exception {
Thread.sleep(2000);
}
}
if(imapStore != null && imapStore.isConnected()) {
imapStore.close();

Check warning on line 330 in openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java

View check run for this annotation

Codecov / codecov/patch

openbas-api/src/main/java/io/openbas/injectors/email/service/ImapService.java#L330

Added line #L330 was not covered by tests
}
}

// Sync folders every 10 sec
Expand Down

0 comments on commit bb76949

Please sign in to comment.