Merge "Log out when done w/ IMAP sync" into jb-ub-mail

This commit is contained in:
Marc Blank 2012-07-23 11:22:01 -07:00 committed by Android (Google) Code Review
commit 354fe3eedf
1 changed files with 3 additions and 0 deletions

View File

@ -1983,8 +1983,11 @@ public class Imap2SyncService extends AbstractSyncService {
} finally {
if (mSocket != null) {
try {
// Try to logout
readResponse(mReader, writeCommand(mWriter, "logout"));
mSocket.close();
} catch (IOException e) {
// We're leaving anyway
}
}
}