diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 14:10:00 +0400 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-10-24 14:10:00 +0400 |
commit | d7f4e49f89a878008101b58eaa207f89068cabba (patch) | |
tree | 507c15da107559dea485f8b040ca1ccfce8cab57 /src/org/traccar/BaseProtocolDecoder.java | |
parent | 3a008c877056234e525587dbb339e5c950748b9a (diff) | |
download | trackermap-server-d7f4e49f89a878008101b58eaa207f89068cabba.tar.gz trackermap-server-d7f4e49f89a878008101b58eaa207f89068cabba.tar.bz2 trackermap-server-d7f4e49f89a878008101b58eaa207f89068cabba.zip |
Search unwrapped handlers by class
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index 8f495900a..7d840960b 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -141,7 +141,7 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { } public DeviceSession getDeviceSession(Channel channel, SocketAddress remoteAddress, String... uniqueIds) { - if (channel != null && channel.pipeline().get(HttpRequestDecoder.class) != null + if (channel != null && BasePipelineFactory.getHandler(channel.pipeline(), HttpRequestDecoder.class) != null || config.getBoolean("decoder.ignoreSessionCache")) { long deviceId = findDeviceId(remoteAddress, uniqueIds); if (deviceId != 0) { |