aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/AnytrekProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-20 10:35:27 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-20 10:35:27 +0400
commita3412e9cca5baf09859d7e5bbfe660d68716f7c7 (patch)
tree940c5c5316778838a8dbc91e5d3612a1eb9572fe /src/org/traccar/protocol/AnytrekProtocolDecoder.java
parentf3563488df041d84b06265dbf792774e2bab4637 (diff)
downloadtrackermap-server-a3412e9cca5baf09859d7e5bbfe660d68716f7c7.tar.gz
trackermap-server-a3412e9cca5baf09859d7e5bbfe660d68716f7c7.tar.bz2
trackermap-server-a3412e9cca5baf09859d7e5bbfe660d68716f7c7.zip
Fix some Java issues
Diffstat (limited to 'src/org/traccar/protocol/AnytrekProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/AnytrekProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/AnytrekProtocolDecoder.java b/src/org/traccar/protocol/AnytrekProtocolDecoder.java
index 7665e6cfd..c48f59c90 100644
--- a/src/org/traccar/protocol/AnytrekProtocolDecoder.java
+++ b/src/org/traccar/protocol/AnytrekProtocolDecoder.java
@@ -48,7 +48,7 @@ public class AnytrekProtocolDecoder extends BaseProtocolDecoder {
response.writeShortLE(0); // checksum
response.writeByte('\r');
response.writeByte('\n');
- channel.writeAndFlush(new NetworkMessage(response, channel.remoteAddress()));
+ channel.writeAndFlush(new NetworkMessage(response, remoteAddress));
}
}