aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-06-24 12:06:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-06-24 12:06:29 +1200
commitcaefd8457cb100ea4e0b3f4d460f2970d57a6430 (patch)
tree080145bff7be48e518b20566a9b9ce80e438a3a3 /src/org/traccar/database
parent88cc68e95606866a7f14c23f753462c6ed837703 (diff)
downloadtraccar-server-caefd8457cb100ea4e0b3f4d460f2970d57a6430.tar.gz
traccar-server-caefd8457cb100ea4e0b3f4d460f2970d57a6430.tar.bz2
traccar-server-caefd8457cb100ea4e0b3f4d460f2970d57a6430.zip
Fix active device issue
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/ConnectionManager.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/database/ConnectionManager.java b/src/org/traccar/database/ConnectionManager.java
index 657c0e6e8..ac60287ae 100644
--- a/src/org/traccar/database/ConnectionManager.java
+++ b/src/org/traccar/database/ConnectionManager.java
@@ -121,10 +121,9 @@ public class ConnectionManager {
if (status.equals(Device.STATUS_ONLINE)) {
timeouts.put(deviceId, GlobalTimer.getTimer().newTimeout(new TimerTask() {
@Override
- public void run(Timeout timeout) throws Exception {
+ public void run(Timeout timeout) {
if (!timeout.isCancelled()) {
updateDevice(deviceId, Device.STATUS_UNKNOWN, null);
- activeDevices.remove(deviceId);
}
}
}, deviceTimeout, TimeUnit.MILLISECONDS));