aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-03-28 17:58:38 -0700
committerAnton Tananaev <anton@traccar.org>2024-03-28 17:58:38 -0700
commit13f6415ba0a8ca76d1a2cbb3d0ea199361295f1b (patch)
treecd6b593c165c84c359f85b8999140c86bb159af7 /src/main
parentb6be94fef718926f5575257ab2724f5e538e215f (diff)
downloadtrackermap-server-13f6415ba0a8ca76d1a2cbb3d0ea199361295f1b.tar.gz
trackermap-server-13f6415ba0a8ca76d1a2cbb3d0ea199361295f1b.tar.bz2
trackermap-server-13f6415ba0a8ca76d1a2cbb3d0ea199361295f1b.zip
Minor formatting change
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java b/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
index c072e55d0..938d170e6 100644
--- a/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
+++ b/src/main/java/org/traccar/protocol/AutoTrackProtocolDecoder.java
@@ -101,10 +101,11 @@ public class AutoTrackProtocolDecoder extends BaseProtocolDecoder {
int type = buf.readUnsignedByte();
buf.readUnsignedShortLE(); // length
+ DeviceSession deviceSession;
switch (type) {
case MSG_LOGIN_REQUEST:
String imei = ByteBufUtil.hexDump(buf.readSlice(8));
- DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, imei);
+ deviceSession = getDeviceSession(channel, remoteAddress, imei);
if (deviceSession == null) {
return null;
}