Log out when done w/ IMAP sync

Change-Id: Ic9993288a331960ba9c492e0ef051c737f1e947f
This commit is contained in:
Marc Blank 2012-07-23 10:18:08 -07:00
parent 70744d6333
commit cbd178e49c
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
}
}
}