Merge change 27056 into eclair

* changes:
  Add check in SyncManager before stopping thread (fixes #2131380)
This commit is contained in:
Android (Google) Code Review 2009-09-25 13:18:03 -04:00
commit e06706987a

View File

@ -564,7 +564,10 @@ public class SyncManager extends Service implements Runnable {
AbstractSyncService svc = INSTANCE.mServiceMap.get(mid);
if (svc != null) {
svc.stop();
svc.mThread.interrupt();
Thread t = svc.mThread;
if (t != null) {
t.interrupt();
}
}
deletedBoxes.add(mid);
}