Skip to content

Commit

Permalink
fix(bug): avid exception make cache unremoved.
Browse files Browse the repository at this point in the history
  • Loading branch information
Koooooo-7 committed Feb 10, 2021
1 parent e99c14d commit 024e94b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/core/chain/KChain.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,11 @@ public void test(List<T> data, ChainExecutorFactory.IExecutor executor) {

@Override
public void apply(G data) {
chain.apply(this.chainContext, data);
try {
chain.apply(this.chainContext, data);
} catch (Exception e) {
e.printStackTrace();
}
this.chainContext.removeCache();
}
}

0 comments on commit 024e94b

Please sign in to comment.