Refresh cancellation signal for newly launched operation

This commit is contained in:
Vincent Breitmoser 2018-07-02 20:02:38 +02:00
parent bf9179391b
commit 71b4598687

View file

@ -71,7 +71,7 @@ public class KeychainService extends Service implements Progressable {
public static final String ACTION_CANCEL = "action_cancel";
// this attribute can possibly merged with the one above? not sure...
private CancellationSignal mActionCanceled = new CancellationSignal();
private CancellationSignal mActionCanceled;
ThreadLocal<Messenger> mMessenger = new ThreadLocal<>();
@ -91,6 +91,8 @@ public class KeychainService extends Service implements Progressable {
return START_NOT_STICKY;
}
mActionCanceled = new CancellationSignal();
Runnable actionRunnable = new Runnable() {
@Override
public void run() {