aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
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/Context.java
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/Context.java')
-rw-r--r--src/org/traccar/Context.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index 13a3b33c4..058b60150 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -90,7 +90,7 @@ public class Context {
}
dataManager = new DataManager(properties);
- dataCache = new DataCache(dataManager);
+ dataCache = new DataCache();
if (Boolean.valueOf(properties.getProperty("web.new"))) {
permissionsManager = new PermissionsManager();
}
@@ -113,6 +113,7 @@ public class Context {
serverManager = new ServerManager();
dataManager.initDatabaseSchema();
+ dataCache.init(dataManager);
serverManager.init();
}