From 9073204bf7c4d9be7a6355d72def253b336a894b Mon Sep 17 00:00:00 2001 From: Vitaly Litvak Date: Mon, 7 Sep 2015 09:23:05 +0300 Subject: Initialise ConnectionManager after web UI to let web application create necessary tables --- src/org/traccar/Context.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar') diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 80c9efb40..7b364d799 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -106,8 +106,6 @@ public class Context { } identityManager = dataManager; - connectionManager = new ConnectionManager(dataManager); - if (config.getBoolean("geocoder.enable")) { String type = config.getString("geocoder.type", "google"); String url = config.getString("geocoder.url"); @@ -131,6 +129,8 @@ public class Context { webServer = new WebServer(config, dataManager.getDataSource()); } + connectionManager = new ConnectionManager(dataManager); + serverManager = new ServerManager(); } -- cgit v1.2.3