mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-10 02:24:05 +09:00
minor edits
This commit is contained in:
@@ -17,7 +17,7 @@ object ThreadExecutor {
|
||||
private fun checkShutdown() {
|
||||
if (!executor.isShutdown) return
|
||||
if (executor.isShutdown&& !executor.isTerminated)
|
||||
throw IllegalStateException("Thread pool is still running")
|
||||
throw IllegalStateException("Pool is closed, come back when all the threads are terminated.")
|
||||
|
||||
executor = Executors.newFixedThreadPool(Runtime.getRuntime().availableProcessors())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user