aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-10-16 12:15:43 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-10-16 12:15:44 +1300
commit421c13cf3aefeb0de6e057bf9d92ee4347d68f2f (patch)
tree0d1b2965ca51705d52784dcc55882e12bff24317 /src/org/traccar/BaseProtocolDecoder.java
parente151bd07a685d8b77ff6c24455ad0520e68843d4 (diff)
downloadtrackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.gz
trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.tar.bz2
trackermap-server-421c13cf3aefeb0de6e057bf9d92ee4347d68f2f.zip
Remove remaining handler names
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index 1f43d6a1e..6b0ece85b 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -17,6 +17,7 @@ package org.traccar;
import io.netty.channel.Channel;
import io.netty.channel.socket.DatagramChannel;
+import io.netty.handler.codec.http.HttpRequestDecoder;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.traccar.helper.UnitsConverter;
@@ -160,7 +161,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
}
public DeviceSession getDeviceSession(Channel channel, SocketAddress remoteAddress, String... uniqueIds) {
- if (channel != null && channel.pipeline().get("httpDecoder") != null
+ if (channel != null && channel.pipeline().get(HttpRequestDecoder.class) != null
|| Context.getConfig().getBoolean("decoder.ignoreSessionCache")) {
long deviceId = findDeviceId(remoteAddress, uniqueIds);
if (deviceId != 0) {