aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/BaseProtocolPoller.java3
-rw-r--r--src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java2
-rw-r--r--src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java2
3 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolPoller.java b/src/main/java/org/traccar/BaseProtocolPoller.java
index 5f4121fc1..be6556374 100644
--- a/src/main/java/org/traccar/BaseProtocolPoller.java
+++ b/src/main/java/org/traccar/BaseProtocolPoller.java
@@ -19,7 +19,6 @@ import io.netty.channel.Channel;
import io.netty.channel.ChannelDuplexHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.util.concurrent.Future;
-import org.traccar.config.Keys;
import java.net.SocketAddress;
import java.util.concurrent.TimeUnit;
@@ -29,7 +28,7 @@ public abstract class BaseProtocolPoller extends ChannelDuplexHandler {
private final long interval;
private Future<?> timeout;
- public BaseProtocolPoller(Protocol protocol, long interval) {
+ public BaseProtocolPoller(long interval) {
this.interval = interval;
}
diff --git a/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java b/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
index 446ce8c39..f7bb9f593 100644
--- a/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
+++ b/src/main/java/org/traccar/protocol/ArmoliProtocolPoller.java
@@ -24,7 +24,7 @@ import java.net.SocketAddress;
public class ArmoliProtocolPoller extends BaseProtocolPoller {
public ArmoliProtocolPoller(Protocol protocol) {
- super(protocol, 180000);
+ super(180000);
}
@Override
diff --git a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
index 65e98474b..6a2d7a92d 100644
--- a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
+++ b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java
@@ -47,7 +47,7 @@ public class OrbcommProtocolPoller extends BaseProtocolPoller {
}
public OrbcommProtocolPoller(Protocol protocol) {
- super(protocol, Context.getConfig().getLong(Keys.PROTOCOL_INTERVAL.withPrefix(protocol.getName())));
+ super(Context.getConfig().getLong(Keys.PROTOCOL_INTERVAL.withPrefix(protocol.getName())));
accessId = Context.getConfig().getString(Keys.ORBCOMM_ACCESS_ID);
password = Context.getConfig().getString(Keys.ORBCOMM_PASSWORD);
host = Context.getConfig().getString(Keys.PROTOCOL_ADDRESS.withPrefix(protocol.getName()));