Skip to content

Commit

Permalink
Apply changes
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLimeGlass committed Aug 31, 2024
1 parent 3905e18 commit 14944f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/ch/njol/skript/util/Task.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,10 @@ public static <T> T callSync(Callable<T> callable) {
Skript.exception(e);
}
}
Future<T> future = TaskManager.submitSafely(callable);
try {
Future<T> future = TaskManager.submitSafely(callable);
return future.get();
} catch (ExecutionException | InterruptedException e) {
} catch (Exception e) {
Skript.exception(e);
return null;
}
Expand Down

0 comments on commit 14944f9

Please sign in to comment.