aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-06-24 21:38:32 +1200
committerGitHub <noreply@github.com>2016-06-24 21:38:32 +1200
commit5b254b93fef12f39b0782bbc94d5f280e680900c (patch)
treec2296ba2461ffc7d33bebb034468e56a5511defc /src/org/traccar/Context.java
parent25e323de26718d349999873196bc5c3f5d70eaae (diff)
parent52e7002ed39c333884529c3a0e8b4c6d23f0115e (diff)
downloadtrackermap-server-5b254b93fef12f39b0782bbc94d5f280e680900c.tar.gz
trackermap-server-5b254b93fef12f39b0782bbc94d5f280e680900c.tar.bz2
trackermap-server-5b254b93fef12f39b0782bbc94d5f280e680900c.zip
Merge pull request #2044 from Abyss777/master
Possibility to disable event and geofences
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r--src/org/traccar/Context.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java
index f40db72e5..b37e87331 100644
--- a/src/org/traccar/Context.java
+++ b/src/org/traccar/Context.java
@@ -193,9 +193,13 @@ public final class Context {
connectionManager = new ConnectionManager(dataManager);
- geofenceManager = new GeofenceManager(dataManager);
+ if (config.getBoolean("event.geofenceHandler")) {
+ geofenceManager = new GeofenceManager(dataManager);
+ }
- notificationManager = new NotificationManager(dataManager);
+ if (config.getBoolean("event.enable")) {
+ notificationManager = new NotificationManager(dataManager);
+ }
serverManager = new ServerManager();