aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Context.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:32:00 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2020-12-29 22:32:00 -0800
commitbdb4aea7ddb7f525d5c476077a88d905d261fdb8 (patch)
treecfa8352aab61762644ece9f01b7997c05b4a19a4 /src/main/java/org/traccar/Context.java
parent8fe1e679935688676f7139bb9ed6dc61838d0e2f (diff)
downloadtrackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.gz
trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.tar.bz2
trackermap-server-bdb4aea7ddb7f525d5c476077a88d905d261fdb8.zip
Migrate more keys
Diffstat (limited to 'src/main/java/org/traccar/Context.java')
-rw-r--r--src/main/java/org/traccar/Context.java6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main/java/org/traccar/Context.java b/src/main/java/org/traccar/Context.java
index 9a382adb4..a870edb4b 100644
--- a/src/main/java/org/traccar/Context.java
+++ b/src/main/java/org/traccar/Context.java
@@ -319,14 +319,12 @@ public final class Context {
smsManager = new HttpSmsClient();
}
- if (config.getBoolean("event.enable")) {
- initEventsModule();
- }
+ initEventsModule();
serverManager = new ServerManager();
scheduleManager = new ScheduleManager();
- if (config.getBoolean("event.forward.enable")) {
+ if (config.hasKey(Keys.EVENT_FORWARD_URL)) {
eventForwarder = new EventForwarder();
}