Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b19b4c71 authored by Fred Quintana's avatar Fred Quintana
Browse files

fix AbstractThreadedSyncAdapter to actually cancel syncs

parent 6ff90cf2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ public abstract class AbstractThreadedSyncAdapter {
            // check it and when we use it
            synchronized (mSyncThreadLock) {
                if (mSyncThread != null
                        && mSyncThread.mSyncContext.getISyncContext() == syncContext) {
                        && mSyncThread.mSyncContext.getISyncContext().asBinder()
                        == syncContext.asBinder()) {
                    mSyncThread.interrupt();
                }
            }