From bdb4aea7ddb7f525d5c476077a88d905d261fdb8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 Dec 2020 22:32:00 -0800 Subject: Migrate more keys --- src/main/java/org/traccar/Context.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/main/java/org/traccar/Context.java') 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(); } -- cgit v1.2.3