diff options
author | Christoph Krey <krey.christoph@gmail.com> | 2017-06-30 08:38:20 +0200 |
---|---|---|
committer | Christoph Krey <krey.christoph@gmail.com> | 2017-06-30 08:38:20 +0200 |
commit | c12a28b811b3310eab5942e9c3650d50c2df1606 (patch) | |
tree | f3ee1f3e611774506b4f98499230f2ceee435c48 /src/org/traccar/protocol | |
parent | 2a3e2325885adbd76818170b935ee6de85e0ea1a (diff) | |
download | trackermap-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.java | 2 |
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();
}
|