diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-30 11:54:25 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-09-30 11:54:25 +1300 |
commit | c3d71d9b2d49ef70a5a02c7b26bdc0cae9fde77b (patch) | |
tree | f9ed373a53f8fc1c6171b31afbff76aa1788cad4 /src/org/traccar/protocol/FlextrackProtocolDecoder.java | |
parent | 933f990cefb03d141508abd60681f5615e3db9e2 (diff) | |
download | trackermap-server-c3d71d9b2d49ef70a5a02c7b26bdc0cae9fde77b.tar.gz trackermap-server-c3d71d9b2d49ef70a5a02c7b26bdc0cae9fde77b.tar.bz2 trackermap-server-c3d71d9b2d49ef70a5a02c7b26bdc0cae9fde77b.zip |
Fix FlexTrack logon decoding
Diffstat (limited to 'src/org/traccar/protocol/FlextrackProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/protocol/FlextrackProtocolDecoder.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/FlextrackProtocolDecoder.java b/src/org/traccar/protocol/FlextrackProtocolDecoder.java index e55324db4..0622cbc3a 100644 --- a/src/org/traccar/protocol/FlextrackProtocolDecoder.java +++ b/src/org/traccar/protocol/FlextrackProtocolDecoder.java @@ -77,12 +77,10 @@ public class FlextrackProtocolDecoder extends BaseProtocolDecoder { String sentence = (String) msg; - String x = PatternUtil.checkPattern(pattern.pattern(), sentence); - if (sentence.contains("LOGON")) { Matcher parser = patternLogon.matcher(sentence); - if (parser.matches()) { + if (!parser.matches()) { return null; } |