diff --git a/router/java/src/net/i2p/router/transport/ntcp/NTCPSendFinisher.java b/router/java/src/net/i2p/router/transport/ntcp/NTCPSendFinisher.java index 72061efe2..38cba58af 100644 --- a/router/java/src/net/i2p/router/transport/ntcp/NTCPSendFinisher.java +++ b/router/java/src/net/i2p/router/transport/ntcp/NTCPSendFinisher.java @@ -68,7 +68,7 @@ class NTCPSendFinisher { private static class CustomThreadPoolExecutor extends ThreadPoolExecutor { public CustomThreadPoolExecutor(int num) { // use unbounded queue, so maximumPoolSize and keepAliveTime have no effect - super(MIN_THREADS, num, 10*1000, TimeUnit.MILLISECONDS, + super(num, num, 10*1000, TimeUnit.MILLISECONDS, new LinkedBlockingQueue(), new CustomThreadFactory()); } }