aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 20:29:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-11-09 20:29:15 +1300
commitf65d8164e673c5a1e2aa4d02aee8e269b19c4900 (patch)
treefd6950fc6ccab2bd56f60a5144bcb319e1f552aa /src/org
parentcf0565caceee6856328e481dd23600ed2590c88a (diff)
downloadtraccar-server-f65d8164e673c5a1e2aa4d02aee8e269b19c4900.tar.gz
traccar-server-f65d8164e673c5a1e2aa4d02aee8e269b19c4900.tar.bz2
traccar-server-f65d8164e673c5a1e2aa4d02aee8e269b19c4900.zip
Improve H2 frame decoder
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/protocol/H02FrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/H02FrameDecoder.java b/src/org/traccar/protocol/H02FrameDecoder.java
index 82e3201f7..b1793825e 100644
--- a/src/org/traccar/protocol/H02FrameDecoder.java
+++ b/src/org/traccar/protocol/H02FrameDecoder.java
@@ -34,7 +34,7 @@ public class H02FrameDecoder extends FrameDecoder {
String marker = buf.toString(buf.readerIndex(), 1, Charset.defaultCharset());
- while ((marker.equals(" ") || marker.equals("\r") || marker.equals("\n")) && buf.readableBytes() > 0) {
+ while (!marker.equals("*") && !marker.equals("$") && buf.readableBytes() > 0) {
buf.skipBytes(1);
marker = buf.toString(buf.readerIndex(), 1, Charset.defaultCharset());
}