aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-03 15:03:02 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-03 15:03:02 +0500
commitc3fef40aa7ecba063c9a46f8c6e150d7ca5128d3 (patch)
tree92e62c889c72eabd6b97ebe3541fe5e709f91770 /src/org
parentbae6692356872fcc093ce92ed37cba7d2e2f6d7f (diff)
downloadtrackermap-server-c3fef40aa7ecba063c9a46f8c6e150d7ca5128d3.tar.gz
trackermap-server-c3fef40aa7ecba063c9a46f8c6e150d7ca5128d3.tar.bz2
trackermap-server-c3fef40aa7ecba063c9a46f8c6e150d7ca5128d3.zip
Rename variable
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/database/ConnectionManager.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java
index b12899711..2017e81a0 100644
--- a/src/org/traccar/database/ConnectionManager.java
+++ b/src/org/traccar/database/ConnectionManager.java
@@ -40,7 +40,7 @@ public class ConnectionManager {
private static final long DEFAULT_TIMEOUT = 600;
private final long deviceTimeout;
- private final boolean statusHandler;
+ private final boolean enableStatusEvents;
private final Map<Long, ActiveDevice> activeDevices = new HashMap<>();
private final Map<Long, Set<UpdateListener>> listeners = new HashMap<>();
@@ -48,7 +48,7 @@ public class ConnectionManager {
public ConnectionManager() {
deviceTimeout = Context.getConfig().getLong("status.timeout", DEFAULT_TIMEOUT) * 1000;
- statusHandler = Context.getConfig().getBoolean("event.statusHandler");
+ enableStatusEvents = Context.getConfig().getBoolean("event.statusHandler");
}
public void addActiveDevice(long deviceId, Protocol protocol, Channel channel, SocketAddress remoteAddress) {
@@ -75,7 +75,7 @@ public class ConnectionManager {
return;
}
- if (statusHandler && !status.equals(device.getStatus())) {
+ if (enableStatusEvents && !status.equals(device.getStatus())) {
Event event = new Event(Event.TYPE_DEVICE_OFFLINE, deviceId);
if (status.equals(Device.STATUS_ONLINE)) {
event.setType(Event.TYPE_DEVICE_ONLINE);