diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 23:16:21 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-05 23:16:21 +1200 |
commit | 9c99076dc2416c4e0725007af0e5f2f2f444c05c (patch) | |
tree | 55068f2ab5dbe99fcd60acc01c1bb05fc365aa43 /src/org/traccar/TrackerServer.java | |
parent | b8f4fc8888aaad7fe384c1dc2b80f44c1683bb03 (diff) | |
download | trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.tar.gz trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.tar.bz2 trackermap-server-9c99076dc2416c4e0725007af0e5f2f2f444c05c.zip |
Migrate more protocols
Diffstat (limited to 'src/org/traccar/TrackerServer.java')
-rw-r--r-- | src/org/traccar/TrackerServer.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/org/traccar/TrackerServer.java b/src/org/traccar/TrackerServer.java index fb643c958..c3d36b04c 100644 --- a/src/org/traccar/TrackerServer.java +++ b/src/org/traccar/TrackerServer.java @@ -19,7 +19,6 @@ import io.netty.bootstrap.AbstractBootstrap; import io.netty.bootstrap.Bootstrap; import io.netty.bootstrap.ServerBootstrap; import io.netty.channel.Channel; -import io.netty.channel.ChannelPipeline; import io.netty.channel.group.ChannelGroup; import io.netty.channel.group.DefaultChannelGroup; import io.netty.channel.socket.nio.NioDatagramChannel; @@ -53,14 +52,14 @@ public abstract class TrackerServer { if (datagram) { this.bootstrap = new Bootstrap() - .group(GlobalChannelFactory.getWorkerGroup()) + .group(EventLoopGroupFactory.getWorkerGroup()) .channel(NioDatagramChannel.class) .handler(pipelineFactory); } else { this.bootstrap = new ServerBootstrap() - .group(GlobalChannelFactory.getBossGroup(), GlobalChannelFactory.getWorkerGroup()) + .group(EventLoopGroupFactory.getBossGroup(), EventLoopGroupFactory.getWorkerGroup()) .channel(NioServerSocketChannel.class) .childHandler(pipelineFactory); |