|
|
@ -280,8 +280,7 @@ public abstract class SimpleTask<T> implements LifecycleObserver {
|
|
|
|
long now = new Date().getTime();
|
|
|
|
long now = new Date().getTime();
|
|
|
|
synchronized (tasks) {
|
|
|
|
synchronized (tasks) {
|
|
|
|
for (SimpleTask task : tasks)
|
|
|
|
for (SimpleTask task : tasks)
|
|
|
|
if (!BuildConfig.PLAY_STORE_RELEASE ||
|
|
|
|
if (task.future != null && !task.future.isDone()) {
|
|
|
|
(task.future != null && !task.future.isDone())) {
|
|
|
|
|
|
|
|
long elapsed = now - task.started;
|
|
|
|
long elapsed = now - task.started;
|
|
|
|
if (elapsed > CANCEL_AFTER && !task.interrupted) {
|
|
|
|
if (elapsed > CANCEL_AFTER && !task.interrupted) {
|
|
|
|
task.interrupted = true;
|
|
|
|
task.interrupted = true;
|
|
|
|