Merge "Fix a case that would leak connections if an exception happens" into ub-mail-master

This commit is contained in:
Martin Hibdon 2014-01-03 22:47:20 +00:00 committed by Android (Google) Code Review
commit 37e2cbb005

View File

@ -418,13 +418,13 @@ public abstract class EmailServiceStub extends IEmailService.Stub implements IEm
if (localFolderCursor != null) {
localFolderCursor.close();
}
if (store != null) {
store.closeConnections();
}
// If we just created the inbox, sync it
if (inboxId != -1) {
startSync(inboxId, true, 0);
}
if (store != null) {
store.closeConnections();
}
}
}