aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorChristoph Krey <krey.christoph@gmail.com>2017-06-30 08:38:20 +0200
committerChristoph Krey <krey.christoph@gmail.com>2017-06-30 08:38:20 +0200
commitc12a28b811b3310eab5942e9c3650d50c2df1606 (patch)
treef3ee1f3e611774506b4f98499230f2ceee435c48 /src/org/traccar/protocol
parent2a3e2325885adbd76818170b935ee6de85e0ea1a (diff)
downloadtrackermap-server-c12a28b811b3310eab5942e9c3650d50c2df1606.tar.gz
trackermap-server-c12a28b811b3310eab5942e9c3650d50c2df1606.tar.bz2
trackermap-server-c12a28b811b3310eab5942e9c3650d50c2df1606.zip
[FIX] use readable() instead of testing readableBytes()
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/AplicomFrameDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AplicomFrameDecoder.java b/src/org/traccar/protocol/AplicomFrameDecoder.java
index e12848f8f..24d55f1cf 100644
--- a/src/org/traccar/protocol/AplicomFrameDecoder.java
+++ b/src/org/traccar/protocol/AplicomFrameDecoder.java
@@ -27,7 +27,7 @@ public class AplicomFrameDecoder extends FrameDecoder {
ChannelHandlerContext ctx, Channel channel, ChannelBuffer buf) throws Exception {
// Skip Alive message
- while (buf.readableBytes() > 0 && Character.isDigit(buf.getByte(buf.readerIndex()))) {
+ while (buf.readable() && Character.isDigit(buf.getByte(buf.readerIndex()))) {
buf.readByte();
}