aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2021-08-15 12:00:03 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2021-08-15 12:00:03 -0700
commit56f9df7e983d07bbcfec0384dc25151b71673bb3 (patch)
tree32d58bc5ebd1f13e02d911f7cae6bdd75e33e340 /src
parentcbb91a4b4422f45aff2a6aa25ac3e3f6d8652e08 (diff)
downloadtrackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.tar.gz
trackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.tar.bz2
trackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.zip
Workaround Netty bug
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/helper/BufferUtil.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/helper/BufferUtil.java b/src/main/java/org/traccar/helper/BufferUtil.java
index 15c619ec5..b086f0f9e 100644
--- a/src/main/java/org/traccar/helper/BufferUtil.java
+++ b/src/main/java/org/traccar/helper/BufferUtil.java
@@ -41,7 +41,7 @@ public final class BufferUtil {
wrappedHaystack.readerIndex(startIndex - haystack.readerIndex());
wrappedHaystack.writerIndex(endIndex - haystack.readerIndex());
int result = indexOf(needle, wrappedHaystack);
- return result < 0 ? result : haystack.readerIndex() + result;
+ return result < 0 ? result : haystack.readerIndex() + startIndex + result;
}
}