Close Manager if checkAccountState fails

This commit is contained in:
AsamK 2021-11-09 22:46:32 +01:00
parent 2b0989adfe
commit dc8abd0032

View file

@ -315,6 +315,11 @@ public class App {
try {
manager.checkAccountState();
} catch (IOException e) {
try {
manager.close();
} catch (IOException ie) {
logger.warn("Failed to close broken account", ie);
}
throw new IOErrorException("Error while checking account " + username + ": " + e.getMessage(), e);
}