Merge "Fix a case that would leak connections if an exception happens" into ub-mail-master
This commit is contained in:
commit
37e2cbb005
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user