diff options
author | Anton Tananaev <anton@traccar.org> | 2022-07-12 17:31:36 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-07-12 17:31:36 -0700 |
commit | 493ff1068ea3e4d96f2475234b265b47cce8691f (patch) | |
tree | 6de7dbc5ac202ba576bc04ecf45dab751aee7bfd /src/main/java/org/traccar/session/cache | |
parent | 98e2db95f73cb85a2623e2902741bcb4e73683e5 (diff) | |
download | trackermap-server-493ff1068ea3e4d96f2475234b265b47cce8691f.tar.gz trackermap-server-493ff1068ea3e4d96f2475234b265b47cce8691f.tar.bz2 trackermap-server-493ff1068ea3e4d96f2475234b265b47cce8691f.zip |
Persist device status (fix #4890, fix #4891)
Diffstat (limited to 'src/main/java/org/traccar/session/cache')
-rw-r--r-- | src/main/java/org/traccar/session/cache/CacheManager.java | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/main/java/org/traccar/session/cache/CacheManager.java b/src/main/java/org/traccar/session/cache/CacheManager.java index c1697faf9..4e99161dd 100644 --- a/src/main/java/org/traccar/session/cache/CacheManager.java +++ b/src/main/java/org/traccar/session/cache/CacheManager.java @@ -18,7 +18,6 @@ package org.traccar.session.cache; import org.traccar.broadcast.BroadcastInterface; import org.traccar.broadcast.BroadcastService; import org.traccar.config.Config; -import org.traccar.helper.model.GeofenceUtil; import org.traccar.model.Attribute; import org.traccar.model.BaseModel; import org.traccar.model.Device; @@ -224,10 +223,6 @@ public class CacheManager implements BroadcastInterface { } finally { lock.writeLock().unlock(); } - - if (object instanceof Device) { - invalidateDeviceGeofences((Device) object); - } } } @@ -304,8 +299,6 @@ public class CacheManager implements BroadcastInterface { devicePositions.put(deviceId, storage.getObject(Position.class, new Request( new Columns.All(), new Condition.Equals("id", "id", device.getPositionId())))); } - - invalidateDeviceGeofences(device); } } @@ -359,11 +352,4 @@ public class CacheManager implements BroadcastInterface { } } - private void invalidateDeviceGeofences(Device device) { - Position position = getPosition(device.getId()); - if (position != null) { - device.setGeofenceIds(GeofenceUtil.getCurrentGeofences(config, this, position)); - } - } - } |