aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-05-29 07:37:28 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-05-29 07:37:28 -0700
commit76d5d3dbabb1c81c96dc24091ab05c8b8d1756f7 (patch)
tree7b10b2e760676e7516156bd8b1285d92b6a6fda4 /src/main/java/org
parentfeb008442b63e5467b050e3cee3cf90a01dcb462 (diff)
downloadtrackermap-server-76d5d3dbabb1c81c96dc24091ab05c8b8d1756f7.tar.gz
trackermap-server-76d5d3dbabb1c81c96dc24091ab05c8b8d1756f7.tar.bz2
trackermap-server-76d5d3dbabb1c81c96dc24091ab05c8b8d1756f7.zip
Handle line break
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/protocol/TechTltProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TechTltProtocolDecoder.java b/src/main/java/org/traccar/protocol/TechTltProtocolDecoder.java
index 046e7a748..17f5c80fa 100644
--- a/src/main/java/org/traccar/protocol/TechTltProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/TechTltProtocolDecoder.java
@@ -119,7 +119,7 @@ public class TechTltProtocolDecoder extends BaseProtocolDecoder {
protected Object decode(
Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {
- String sentence = (String) msg;
+ String sentence = ((String) msg).trim();
if (sentence.contains("INFO")) {
return decodeStatus(channel, remoteAddress, sentence);
} else if (sentence.contains("POS")) {