Fix potential looping issue
* If there is a change sent and no response from the server, we
won't clean up the updates/deletes table
* In this case, we'll sync every ten seconds or so (at least
until a new message comes in)
* This has been around for a very long time
Change-Id: I3569d2fb7262f06df44ca0ab0c3b85aa13527062
diff --git a/src/com/android/exchange/EasSyncService.java b/src/com/android/exchange/EasSyncService.java
index 58729fd..773b7de 100644
--- a/src/com/android/exchange/EasSyncService.java
+++ b/src/com/android/exchange/EasSyncService.java
@@ -1753,6 +1753,8 @@
}
if (emptyStream) {
+ // Make sure we get rid of updates/deletes
+ target.cleanup();
// If this happens, exit cleanly, and change the interval from push to ping
// if necessary
userLog("Empty sync response; finishing");