diff --git a/src/com/android/exchange/SyncManager.java b/src/com/android/exchange/SyncManager.java index 5126fbde1..bce3c91fc 100644 --- a/src/com/android/exchange/SyncManager.java +++ b/src/com/android/exchange/SyncManager.java @@ -1454,7 +1454,9 @@ public class SyncManager extends Service implements Runnable { // In this case, we release the mailbox so that we can start another // thread to do the work log("Alarm failed; releasing mailbox"); - syncManager.releaseMailbox(id); + synchronized(sSyncLock) { + syncManager.releaseMailbox(id); + } // Shutdown the connection manager; this should close all of our // sockets and generate IOExceptions all around. syncManager.shutdownConnectionManager();