Fixed inconsistent synchronization

This commit is contained in:
Trustin Lee 2009-03-04 10:24:27 +00:00
parent 7d00231a60
commit 9e623c9cb1

View File

@ -60,7 +60,7 @@ public class NettyResourceFactory implements InitializingBean, DisposableBean {
unterminatableExecutor = null;
}
public Executor getChannelFactoryExecutor() {
public synchronized Executor getChannelFactoryExecutor() {
return unterminatableExecutor;
}
}