Make NetworkEventFiringHandler sharable

Fixes #356
This commit is contained in:
jk-5 2014-01-19 12:21:24 +01:00
parent 44a093e74b
commit f080c5d2e8

View file

@ -3,6 +3,7 @@ package cpw.mods.fml.common.network;
import org.apache.logging.log4j.Level; import org.apache.logging.log4j.Level;
import cpw.mods.fml.common.FMLLog; import cpw.mods.fml.common.FMLLog;
import cpw.mods.fml.common.network.internal.FMLProxyPacket; import cpw.mods.fml.common.network.internal.FMLProxyPacket;
import io.netty.channel.ChannelHandler.Sharable;
import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler; import io.netty.channel.SimpleChannelInboundHandler;
@ -14,6 +15,7 @@ import io.netty.channel.SimpleChannelInboundHandler;
* @author cpw * @author cpw
* *
*/ */
@Sharable
public class NetworkEventFiringHandler extends SimpleChannelInboundHandler<FMLProxyPacket> { public class NetworkEventFiringHandler extends SimpleChannelInboundHandler<FMLProxyPacket> {
private FMLEventChannel eventChannel; private FMLEventChannel eventChannel;