diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-15 12:00:03 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2021-08-15 12:00:03 -0700 |
commit | 56f9df7e983d07bbcfec0384dc25151b71673bb3 (patch) | |
tree | 32d58bc5ebd1f13e02d911f7cae6bdd75e33e340 /src/main/java/org | |
parent | cbb91a4b4422f45aff2a6aa25ac3e3f6d8652e08 (diff) | |
download | trackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.tar.gz trackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.tar.bz2 trackermap-server-56f9df7e983d07bbcfec0384dc25151b71673bb3.zip |
Workaround Netty bug
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/traccar/helper/BufferUtil.java | 2 |
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; } } |