From 0f00949e6f91e884ee38b279a4df6d7da435dcd6 Mon Sep 17 00:00:00 2001 From: Sotr Date: Mon, 11 Jun 2018 16:56:26 +0800 Subject: [PATCH] Fixes jenkins --- .../io/akarin/server/mixin/bootstrap/ParallelRegistry.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sources/src/main/java/io/akarin/server/mixin/bootstrap/ParallelRegistry.java b/sources/src/main/java/io/akarin/server/mixin/bootstrap/ParallelRegistry.java index 2a5528521..dba8f82b4 100644 --- a/sources/src/main/java/io/akarin/server/mixin/bootstrap/ParallelRegistry.java +++ b/sources/src/main/java/io/akarin/server/mixin/bootstrap/ParallelRegistry.java @@ -128,12 +128,12 @@ public class ParallelRegistry { // Shutdown BLOCK and STANDALONE stage STAGE_STANDALONE.shutdown(); STAGE_BLOCK.shutdown(); - STAGE_BLOCK.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); + STAGE_BLOCK.awaitTermination(10, TimeUnit.MINUTES); STAGE_BLOCK_BASE.shutdown(); // This must after STAGE_BLOCK terminated - STAGE_BLOCK_BASE.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); + STAGE_BLOCK_BASE.awaitTermination(20, TimeUnit.MINUTES); - STAGE_STANDALONE.awaitTermination(Long.MAX_VALUE, TimeUnit.SECONDS); // Behind the shutdown of BLOCK_BASE should faster + STAGE_STANDALONE.awaitTermination(30, TimeUnit.MINUTES); // Behind the shutdown of BLOCK_BASE should faster } }