geforkt von sorceress/EasyAuth
Increasing shutdown time limit
Dieser Commit ist enthalten in:
Ursprung
561e3784c9
Commit
0c8505293d
|
@ -131,7 +131,7 @@ public class SimpleAuth implements DedicatedServerModInitializer {
|
||||||
// Closing threads
|
// Closing threads
|
||||||
try {
|
try {
|
||||||
THREADPOOL.shutdownNow();
|
THREADPOOL.shutdownNow();
|
||||||
if (!THREADPOOL.awaitTermination(100, TimeUnit.MICROSECONDS)) {
|
if (!THREADPOOL.awaitTermination(500, TimeUnit.MILLISECONDS)) {
|
||||||
Thread.currentThread().interrupt();
|
Thread.currentThread().interrupt();
|
||||||
}
|
}
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
|
|
Laden…
In neuem Issue referenzieren