Skip to content

Commit 79948be

Browse files
committed
throw when a thread in thread pool has an error post-execution
1 parent 01730bc commit 79948be

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/tech/fastj/systems/execution/FastJScheduledThreadPool.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ protected void afterExecute(Runnable runnable, Throwable throwable) {
102102
if (shouldCloseOnError) {
103103
FastJEngine.forceCloseGame();
104104
}
105+
106+
throw new IllegalStateException(throwable);
105107
}
106108
}
107109
}

0 commit comments

Comments
 (0)