aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/BaseProtocol.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-07 07:07:25 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-07 07:07:25 -0700
commit65f9e253171dc6805127e5279b97fad05f8c4b9f (patch)
treefc3968d7c5c5c07118d4e153ece5af31371e90a5 /src/main/java/org/traccar/BaseProtocol.java
parent8eecfdcf5c59f92158a6c339d1622e0e9d67968c (diff)
downloadtrackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.tar.gz
trackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.tar.bz2
trackermap-server-65f9e253171dc6805127e5279b97fad05f8c4b9f.zip
Remove async methods
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocol.java')
-rw-r--r--src/main/java/org/traccar/BaseProtocol.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/BaseProtocol.java b/src/main/java/org/traccar/BaseProtocol.java
index 52d34dc44..ec1933dc8 100644
--- a/src/main/java/org/traccar/BaseProtocol.java
+++ b/src/main/java/org/traccar/BaseProtocol.java
@@ -113,11 +113,11 @@ public abstract class BaseProtocol implements Protocol {
public void sendTextCommand(String destAddress, Command command) throws Exception {
if (Context.getSmsManager() != null) {
if (command.getType().equals(Command.TYPE_CUSTOM)) {
- Context.getSmsManager().sendMessageSync(destAddress, command.getString(Command.KEY_DATA), true);
+ Context.getSmsManager().sendMessage(destAddress, command.getString(Command.KEY_DATA), true);
} else if (supportedTextCommands.contains(command.getType()) && textCommandEncoder != null) {
String encodedCommand = (String) textCommandEncoder.encodeCommand(command);
if (encodedCommand != null) {
- Context.getSmsManager().sendMessageSync(destAddress, encodedCommand, true);
+ Context.getSmsManager().sendMessage(destAddress, encodedCommand, true);
} else {
throw new RuntimeException("Failed to encode command");
}