Skip to content

Commit 99a5170

Browse files
author
guitcastro
committed
fix possible deadlock in serialized background androidannotations#1689
1 parent 8d8c6d4 commit 99a5170

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/api

‎AndroidAnnotations/androidannotations-core/androidannotations-api/src/main/java/org/androidannotations/api/BackgroundExecutor.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public static synchronized void execute(Task task) {
133133
task.executionAsked = true;
134134
future = directExecute(task, task.remainingDelay);
135135
}
136-
if (task.id != null || task.serial != null) {
136+
if ((task.id != null || task.serial != null) && !task.managed.get()) {
137137
/* keep task */
138138
task.future = future;
139139
TASKS.add(task);

0 commit comments

Comments
 (0)