diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-08 23:57:59 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-06-08 23:57:59 +1200 |
commit | fb543fb413652f4cb0408a6caafbdd7f4a4ca369 (patch) | |
tree | bda13c8001013f586ec7062608addf1b7e5a83ed /src/org/traccar/protocol/SanavProtocolDecoder.java | |
parent | ecb7bb33fcec52491f917dbc65a82990dcddb808 (diff) | |
download | trackermap-server-fb543fb413652f4cb0408a6caafbdd7f4a4ca369.tar.gz trackermap-server-fb543fb413652f4cb0408a6caafbdd7f4a4ca369.tar.bz2 trackermap-server-fb543fb413652f4cb0408a6caafbdd7f4a4ca369.zip |
Migrate R and S protocols
Diffstat (limited to 'src/org/traccar/protocol/SanavProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/SanavProtocolDecoder.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/org/traccar/protocol/SanavProtocolDecoder.java b/src/org/traccar/protocol/SanavProtocolDecoder.java index 714bb15d5..6bbcd05b7 100644 --- a/src/org/traccar/protocol/SanavProtocolDecoder.java +++ b/src/org/traccar/protocol/SanavProtocolDecoder.java @@ -1,5 +1,5 @@ /* - * Copyright 2013 Anton Tananaev (anton@traccar.org) + * Copyright 2013 - 2018 Anton Tananaev (anton@traccar.org) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -15,7 +15,7 @@ */ package org.traccar.protocol; -import org.jboss.netty.channel.Channel; +import io.netty.channel.Channel; import org.traccar.BaseProtocolDecoder; import org.traccar.DeviceSession; import org.traccar.helper.DateBuilder; @@ -59,12 +59,12 @@ public class SanavProtocolDecoder extends BaseProtocolDecoder { return null; } - Position position = new Position(getProtocolName()); - DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next()); if (deviceSession == null) { return null; } + + Position position = new Position(getProtocolName()); position.setDeviceId(deviceSession.getDeviceId()); DateBuilder dateBuilder = new DateBuilder() |