aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-08-06 21:41:52 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2019-08-06 21:41:52 -0700
commit822abea747bb79ff72e3f54cc968c37a73beb73d (patch)
tree26760aea6543267ba583005b6d1740c9bef25b56 /src/main/java/org/traccar/BaseProtocolDecoder.java
parent5c470d62146b9530119e14211cac1d82c2c03c42 (diff)
downloadtrackermap-server-822abea747bb79ff72e3f54cc968c37a73beb73d.tar.gz
trackermap-server-822abea747bb79ff72e3f54cc968c37a73beb73d.tar.bz2
trackermap-server-822abea747bb79ff72e3f54cc968c37a73beb73d.zip
Clean up decoder
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolDecoder.java b/src/main/java/org/traccar/BaseProtocolDecoder.java
index 9dbe78c9d..c78c220aa 100644
--- a/src/main/java/org/traccar/BaseProtocolDecoder.java
+++ b/src/main/java/org/traccar/BaseProtocolDecoder.java
@@ -149,8 +149,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
public DeviceSession getDeviceSession(
Channel channel, SocketAddress remoteAddress, boolean ignoreCache, String... uniqueIds) {
if (channel != null && BasePipelineFactory.getHandler(channel.pipeline(), HttpRequestDecoder.class) != null
- || ignoreCache
- || config.getBoolean("decoder.ignoreSessionCache")) {
+ || ignoreCache || config.getBoolean("decoder.ignoreSessionCache")) {
long deviceId = findDeviceId(remoteAddress, uniqueIds);
if (deviceId != 0) {
if (connectionManager != null) {