summaryrefslogtreecommitdiff
path: root/exchange2/src/com/android/exchange/EasAccountService.java
diff options
context:
space:
mode:
Diffstat (limited to 'exchange2/src/com/android/exchange/EasAccountService.java')
-rw-r--r--exchange2/src/com/android/exchange/EasAccountService.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/exchange2/src/com/android/exchange/EasAccountService.java b/exchange2/src/com/android/exchange/EasAccountService.java
index 533a5df5..863e0d63 100644
--- a/exchange2/src/com/android/exchange/EasAccountService.java
+++ b/exchange2/src/com/android/exchange/EasAccountService.java
@@ -310,7 +310,15 @@ public class EasAccountService extends EasSyncService {
while (!isStopped()) {
// If we're not allowed to sync (e.g. roaming policy), leave now
- if (!ExchangeService.canAutoSync(mAccount)) return;
+ if (!ExchangeService.canAutoSync(mAccount)) {
+ if (ExchangeService.onSecurityHold(mAccount)) {
+ mExitStatus = EasSyncService.EXIT_SECURITY_FAILURE;
+ } else {
+ // Use backoff rules, etc.
+ mExitStatus = EasSyncService.EXIT_IO_ERROR;
+ }
+ return;
+ }
userLog("Sending Account syncKey: ", mAccount.mSyncKey);
Serializer s = new Serializer();
s.start(Tags.FOLDER_FOLDER_SYNC).start(Tags.FOLDER_SYNC_KEY)