Skip to content

Commit

Permalink
Merge pull request #1 from twolight/master
Browse files Browse the repository at this point in the history
Fix bug:child task should not wait after the parent task has done
  • Loading branch information
markzhai committed Oct 13, 2015
2 parents b896355 + 5ad1ab1 commit d5e5f9b
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 d5e5f9b

Please sign in to comment.