aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-04 09:35:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-04 09:35:29 +1200
commit348af61e012cd645a253b54a3938fbcaef205dba (patch)
tree2995de36a69def44f0aa4e8535ac8083dbd9988d /src/org
parentde6eca45cf61268ec5940251b2fb09dd639dab66 (diff)
downloadtrackermap-server-348af61e012cd645a253b54a3938fbcaef205dba.tar.gz
trackermap-server-348af61e012cd645a253b54a3938fbcaef205dba.tar.bz2
trackermap-server-348af61e012cd645a253b54a3938fbcaef205dba.zip
Fix GoSafe channel pipeline
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/GoSafeProtocol.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/GoSafeProtocol.java b/src/org/traccar/protocol/GoSafeProtocol.java
index 96327a075..af2c2858d 100644
--- a/src/org/traccar/protocol/GoSafeProtocol.java
+++ b/src/org/traccar/protocol/GoSafeProtocol.java
@@ -19,6 +19,7 @@ import java.util.List;
import org.jboss.netty.bootstrap.ServerBootstrap;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.handler.codec.string.StringDecoder;
+import org.jboss.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
import org.traccar.CharacterDelimiterFrameDecoder;
import org.traccar.TrackerServer;
@@ -36,7 +37,7 @@ public class GoSafeProtocol extends BaseProtocol {
protected void addSpecificHandlers(ChannelPipeline pipeline) {
pipeline.addLast("frameDecoder", new CharacterDelimiterFrameDecoder(1024, '#'));
pipeline.addLast("stringDecoder", new StringDecoder());
- pipeline.addLast("stringEncoder", new StringDecoder());
+ pipeline.addLast("stringEncoder", new StringEncoder());
pipeline.addLast("objectDecoder", new GoSafeProtocolDecoder(GoSafeProtocol.this));
}
});