diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-23 08:31:14 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-07-23 08:31:14 -0700 |
commit | 44f0b1f5b7b575d38746f7a4f98beea336f963db (patch) | |
tree | 3191bde2e118a4ae3eba6a451b44a5576513d02e /src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java | |
parent | 1bafb567e4a2122acf06540d11f2889ca9b473ad (diff) | |
download | trackermap-server-44f0b1f5b7b575d38746f7a4f98beea336f963db.tar.gz trackermap-server-44f0b1f5b7b575d38746f7a4f98beea336f963db.tar.bz2 trackermap-server-44f0b1f5b7b575d38746f7a4f98beea336f963db.zip |
Fix message splitting
Diffstat (limited to 'src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java')
-rw-r--r-- | src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java b/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java index c4b29850d..ebc7e7c04 100644 --- a/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java +++ b/src/main/java/org/traccar/protocol/GoSafeProtocolDecoder.java @@ -243,7 +243,7 @@ public class GoSafeProtocolDecoder extends BaseProtocolDecoder { } else { List<Position> positions = new LinkedList<>(); - for (String item : parser.next().split("$")) { + for (String item : parser.next().split("\\$")) { positions.add(decodePosition(deviceSession, item)); } return positions; |