diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-21 18:59:49 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-21 18:59:49 -0800 |
commit | cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0 (patch) | |
tree | 3830f47a8a06d60863faffdeee7cef6064f22032 /src/main/java/org/traccar/BaseProtocolPoller.java | |
parent | 2284044f7e9e00935e6ec5020e68ef2492326dda (diff) | |
download | trackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.tar.gz trackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.tar.bz2 trackermap-server-cb07c34f3b79d82d85ab6c0df8f64c3c3facc3a0.zip |
Update Armoli protocol
Diffstat (limited to 'src/main/java/org/traccar/BaseProtocolPoller.java')
-rw-r--r-- | src/main/java/org/traccar/BaseProtocolPoller.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/BaseProtocolPoller.java b/src/main/java/org/traccar/BaseProtocolPoller.java index 88138577c..5f4121fc1 100644 --- a/src/main/java/org/traccar/BaseProtocolPoller.java +++ b/src/main/java/org/traccar/BaseProtocolPoller.java @@ -29,8 +29,8 @@ public abstract class BaseProtocolPoller extends ChannelDuplexHandler { private final long interval; private Future<?> timeout; - public BaseProtocolPoller(Protocol protocol) { - interval = Context.getConfig().getLong(Keys.PROTOCOL_INTERVAL.withPrefix(protocol.getName())); + public BaseProtocolPoller(Protocol protocol, long interval) { + this.interval = interval; } protected abstract void sendRequest(Channel channel, SocketAddress remoteAddress); |