Log out when done w/ IMAP sync
Change-Id: Ic9993288a331960ba9c492e0ef051c737f1e947f
This commit is contained in:
parent
70744d6333
commit
cbd178e49c
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue