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 72061efe2bcfcd3a9fc6fc6febd172716cf2b02a..38cba58afe68b99d9494a8978316ca98cf6fc7c8 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<Runnable>(), new CustomThreadFactory()); } }