Made sure NettyResourceFactory.create() returns silently if called multiple times
This commit is contained in:
parent
587d623789
commit
733feddebb
@ -40,6 +40,10 @@ public class NettyResourceFactory {
|
||||
private Executor unterminatableExecutor;
|
||||
|
||||
public synchronized void create() {
|
||||
if (executor != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
executor = Executors.newCachedThreadPool();
|
||||
unterminatableExecutor = new UnterminatableExecutor(executor);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user