Skip to content

Commit

Permalink
fix the bug:child task should not wait after the parent task has done
Browse files Browse the repository at this point in the history
  • Loading branch information
twolight committed Oct 13, 2015
1 parent b896355 commit 5ad1ab1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion init/src/main/java/cn/zhaiyifan/init/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ public void run() {
if (mParentTask != null) {
synchronized (this) {
try {
wait();
if(mParentTask.getStatus() != Status.STATUS_DONE) {
wait();
}
} catch (InterruptedException e) {
LogImpl.w(TAG, getName() + ": " + e.getMessage());
}
Expand Down

0 comments on commit 5ad1ab1

Please sign in to comment.