Skip to content

Commit

Permalink
Add cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
TangBean authored Mar 20, 2019
1 parent 37b175e commit cc761dc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public String call() throws Exception {
runResult = e.getCause().getMessage();
} catch (TimeoutException e) {
runResult = "Time Limit Exceeded.";
} finally {
res.cancel(true);
}
return runResult;
}
Expand Down

0 comments on commit cc761dc

Please sign in to comment.