aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/protocol')
-rw-r--r--src/org/traccar/protocol/SyrusProtocolDecoder.java7
1 files changed, 5 insertions, 2 deletions
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);
}
}