Always cancel the task before starting it

This commit is contained in:
ameba23
2021-04-15 11:47:48 +02:00
parent 20df10d7a8
commit 4ba3fdb1e3

View File

@@ -70,6 +70,7 @@ public class CustodianReturnShardViewModel extends AndroidViewModel
this.ioExecutor = ioExecutor;
this.task = task;
qrCodeDecoder = new QrCodeDecoder(androidExecutor, ioExecutor, this);
task.cancel();
task.start(this);
}