aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-17 01:15:05 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-17 01:15:05 +1200
commitd0d83fd1424b87fcba295676a0116cc61bf79767 (patch)
tree929a43b0c41ee7ab69c412c1c09de78d13c8b14c /src/org/traccar/protocol
parent24ef58447149502dd3fff68d0c9920115a25df31 (diff)
downloadtrackermap-server-d0d83fd1424b87fcba295676a0116cc61bf79767.tar.gz
trackermap-server-d0d83fd1424b87fcba295676a0116cc61bf79767.tar.bz2
trackermap-server-d0d83fd1424b87fcba295676a0116cc61bf79767.zip
Only reply in TCP mode (fix #1836)
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/T55ProtocolDecoder.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/T55ProtocolDecoder.java b/src/org/traccar/protocol/T55ProtocolDecoder.java
index c5704cd56..a71ef6b33 100644
--- a/src/org/traccar/protocol/T55ProtocolDecoder.java
+++ b/src/org/traccar/protocol/T55ProtocolDecoder.java
@@ -19,6 +19,7 @@ import java.net.SocketAddress;
import java.util.Date;
import java.util.regex.Pattern;
import org.jboss.netty.channel.Channel;
+import org.jboss.netty.channel.socket.DatagramChannel;
import org.traccar.BaseProtocolDecoder;
import org.traccar.helper.DateBuilder;
import org.traccar.helper.Parser;
@@ -92,7 +93,7 @@ public class T55ProtocolDecoder extends BaseProtocolDecoder {
private Position decodeGprmc(String sentence, SocketAddress remoteAddress, Channel channel) {
- if (channel != null) {
+ if (channel != null && !(channel instanceof DatagramChannel)) {
channel.write("OK1\r\n");
}