Skip to content

Commit

Permalink
fix possible deadlock in serialized background androidannotations#1689
Browse files Browse the repository at this point in the history
  • Loading branch information
guitcastro committed Feb 4, 2016
1 parent 8d8c6d4 commit 99a5170
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -133,7 +133,7 @@ public static synchronized void execute(Task task) {
task.executionAsked = true;
future = directExecute(task, task.remainingDelay);
}
if (task.id != null || task.serial != null) {
if ((task.id != null || task.serial != null) && !task.managed.get()) {
/* keep task */
task.future = future;
TASKS.add(task);
Expand Down

0 comments on commit 99a5170

Please sign in to comment.