From 6b013eebc495d417d666a17b547762961acd6906 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 11 Jan 2014 17:19:53 +1300 Subject: Remove TAIP response --- src/org/traccar/protocol/SyrusProtocolDecoder.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/protocol') diff --git a/src/org/traccar/protocol/SyrusProtocolDecoder.java b/src/org/traccar/protocol/SyrusProtocolDecoder.java index b20e16bcb..e64544307 100644 --- a/src/org/traccar/protocol/SyrusProtocolDecoder.java +++ b/src/org/traccar/protocol/SyrusProtocolDecoder.java @@ -29,9 +29,12 @@ import org.traccar.model.ExtendedInfoFormatter; import org.traccar.model.Position; public class SyrusProtocolDecoder extends BaseProtocolDecoder { + + boolean sendResponse; - public SyrusProtocolDecoder(ServerManager serverManager) { + public SyrusProtocolDecoder(ServerManager serverManager, boolean sendResponse) { super(serverManager); + this.sendResponse = sendResponse; } private static final Pattern pattern = Pattern.compile( @@ -112,7 +115,7 @@ public class SyrusProtocolDecoder extends BaseProtocolDecoder { } // Send response - if (channel != null) { + if (sendResponse && channel != null) { channel.write(id); } } -- cgit v1.2.3