From 9e623c9cb121353e3624042afde411b321e10999 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Wed, 4 Mar 2009 10:24:27 +0000 Subject: [PATCH] Fixed inconsistent synchronization --- .../org/jboss/netty/container/spring/NettyResourceFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/jboss/netty/container/spring/NettyResourceFactory.java b/src/main/java/org/jboss/netty/container/spring/NettyResourceFactory.java index b601ba10ff..3441e2f23e 100644 --- a/src/main/java/org/jboss/netty/container/spring/NettyResourceFactory.java +++ b/src/main/java/org/jboss/netty/container/spring/NettyResourceFactory.java @@ -60,7 +60,7 @@ public class NettyResourceFactory implements InitializingBean, DisposableBean { unterminatableExecutor = null; } - public Executor getChannelFactoryExecutor() { + public synchronized Executor getChannelFactoryExecutor() { return unterminatableExecutor; } }