Skip to content

Commit

Permalink
fix : delayed tasks not removed after execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Can Elmas authored and Can Elmas committed Nov 2, 2015
1 parent 7f3b48d commit 66ef360
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
*.iml
*.idea

/CHANGELOG.md
Notes
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Change Log
==========

Version 0.1.3-SNAPSHOT *(2015-11-02)*
----------------------------

* Fix: Delayed tasks not removed after execution
3 changes: 2 additions & 1 deletion let-runtime/src/main/java/com/canelmas/let/DelayedTasks.java
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ public Object call() throws Exception {
return joinPoint.proceed();
} catch (Throwable t) {
throw new LetException("Future Task execution failed!", t);
} finally {
DelayedTasks.remove(this);
}
}

Expand All @@ -80,5 +82,4 @@ public String toString() {
}
}


}
2 changes: 2 additions & 0 deletions let-runtime/src/main/java/com/canelmas/let/Let.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ public static void handle(int requestCode, String[] permissions, int[] grantResu
}

try {

Logger.log("<<< Required permissions granted");

delayedTask.execute();

} catch (Exception e) {
Expand Down

0 comments on commit 66ef360

Please sign in to comment.