aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-02-04 09:47:19 -0800
committerAnton Tananaev <anton@traccar.org>2024-02-04 09:47:19 -0800
commit444d54e792418333b98a109490b7eaffc96cdf53 (patch)
tree86f83a54b50db26e56914bb8cbbf97c6518ce9f3
parentb7bd2ce8416a4b7bbc8a5e5171f0891d894e6bc7 (diff)
downloadtrackermap-server-444d54e792418333b98a109490b7eaffc96cdf53.tar.gz
trackermap-server-444d54e792418333b98a109490b7eaffc96cdf53.tar.bz2
trackermap-server-444d54e792418333b98a109490b7eaffc96cdf53.zip
Change to if statement
-rw-r--r--src/main/java/org/traccar/protocol/TeltonikaFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/TeltonikaFrameDecoder.java b/src/main/java/org/traccar/protocol/TeltonikaFrameDecoder.java
index 3a0962584..aabc24887 100644
--- a/src/main/java/org/traccar/protocol/TeltonikaFrameDecoder.java
+++ b/src/main/java/org/traccar/protocol/TeltonikaFrameDecoder.java
@@ -29,7 +29,7 @@ public class TeltonikaFrameDecoder extends BaseFrameDecoder {
protected Object decode(
ChannelHandlerContext ctx, Channel channel, ByteBuf buf) throws Exception {
- while (buf.isReadable() && buf.getByte(buf.readerIndex()) == (byte) 0xff) {
+ if (buf.isReadable() && buf.getByte(buf.readerIndex()) == (byte) 0xff) {
return buf.readRetainedSlice(1);
}