aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 11:16:18 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-21 11:16:18 +1200
commit35c6a243214d74cdc470a7b665dadb56a232fd0e (patch)
treebd092e14939afa034f5259c2b5b9d899eb7513dd /src/org/traccar/database
parentfd43b679f833f9632889bea91d3a28516a85d2a7 (diff)
downloadtrackermap-server-35c6a243214d74cdc470a7b665dadb56a232fd0e.tar.gz
trackermap-server-35c6a243214d74cdc470a7b665dadb56a232fd0e.tar.bz2
trackermap-server-35c6a243214d74cdc470a7b665dadb56a232fd0e.zip
Fix mocks on fist start
Diffstat (limited to 'src/org/traccar/database')
-rw-r--r--src/org/traccar/database/DataCache.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/database/DataCache.java b/src/org/traccar/database/DataCache.java
index 390187200..fc29f0e2e 100644
--- a/src/org/traccar/database/DataCache.java
+++ b/src/org/traccar/database/DataCache.java
@@ -23,9 +23,7 @@ import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.Set;
-
import org.traccar.helper.Log;
-import org.traccar.model.Event;
import org.traccar.model.Position;
public class DataCache {
@@ -33,7 +31,7 @@ public class DataCache {
private final Map<Long, Position> positions = new HashMap<Long, Position>();
private final Map<Long, Set<DataCacheListener>> listeners = new HashMap<Long, Set<DataCacheListener>>();
- public DataCache(DataManager dataManager) {
+ public void init(DataManager dataManager) {
try {
Collection<Position> positions = dataManager.getLatestPositions();
for (Position position : positions) {