reduce wait duration for potential long blocking

This commit is contained in:
Jonathan Shook 2022-09-09 11:00:19 -05:00
parent 6d389da5a9
commit 769426600d

View File

@ -128,7 +128,8 @@ public class ThreadDrivenTokenPool implements TokenPool {
blocks++; blocks++;
//System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset); //System.out.println(ANSI_BrightRed + "waiting for " + amt + "/" + activePool + " of max " + maxActivePool + ANSI_Reset);
try { try {
wait(maxActivePool / 1000000, 0); wait(1000);
// wait(maxActivePool / 1000000, 0);
} catch (InterruptedException ignored) { } catch (InterruptedException ignored) {
} catch (Exception e) { } catch (Exception e) {
throw new RuntimeException(e); throw new RuntimeException(e);