aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/protocol/TechtoCruzProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-11-25 17:52:29 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2021-11-25 17:52:29 -0800
commit610bd8d84705b5cfa43f2bcf50d6f0c841ecf260 (patch)
tree10d99dcd6409fb5dd774873d785a42d2c9eac3e3 /src/main/java/org/traccar/protocol/TechtoCruzProtocol.java
parent0fea1a39bea08a43771fc08becdf5d7f2f392531 (diff)
downloadtrackermap-server-610bd8d84705b5cfa43f2bcf50d6f0c841ecf260.tar.gz
trackermap-server-610bd8d84705b5cfa43f2bcf50d6f0c841ecf260.tar.bz2
trackermap-server-610bd8d84705b5cfa43f2bcf50d6f0c841ecf260.zip
Add custom frame decoder
Diffstat (limited to 'src/main/java/org/traccar/protocol/TechtoCruzProtocol.java')
-rw-r--r--src/main/java/org/traccar/protocol/TechtoCruzProtocol.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/protocol/TechtoCruzProtocol.java b/src/main/java/org/traccar/protocol/TechtoCruzProtocol.java
index 890a8abb1..a217ea738 100644
--- a/src/main/java/org/traccar/protocol/TechtoCruzProtocol.java
+++ b/src/main/java/org/traccar/protocol/TechtoCruzProtocol.java
@@ -15,7 +15,6 @@
*/
package org.traccar.protocol;
-import io.netty.handler.codec.LineBasedFrameDecoder;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.handler.codec.string.StringEncoder;
import org.traccar.BaseProtocol;
@@ -28,7 +27,7 @@ public class TechtoCruzProtocol extends BaseProtocol {
addServer(new TrackerServer(false, getName()) {
@Override
protected void addProtocolHandlers(PipelineBuilder pipeline) {
- pipeline.addLast(new LineBasedFrameDecoder(1024));
+ pipeline.addLast(new TechtoCruzFrameDecoder());
pipeline.addLast(new StringEncoder());
pipeline.addLast(new StringDecoder());
pipeline.addLast(new TechtoCruzProtocolDecoder(TechtoCruzProtocol.this));