aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-09 07:08:39 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-09 07:08:39 -0700
commit4dbe47a2362bde8e2a8419b202a02e5e7fc16f87 (patch)
treefbc7dbdaa2316562f5aa4eeb0229f407a0d327af /src/main/java/org/traccar/Main.java
parent12fe28bebbdbc61214363a9c7b51bd300ed62c15 (diff)
downloadtrackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.tar.gz
trackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.tar.bz2
trackermap-server-4dbe47a2362bde8e2a8419b202a02e5e7fc16f87.zip
Remove more from context
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r--src/main/java/org/traccar/Main.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java
index b14f22a00..c35ea33a9 100644
--- a/src/main/java/org/traccar/Main.java
+++ b/src/main/java/org/traccar/Main.java
@@ -20,6 +20,7 @@ import com.google.inject.Injector;
import com.google.inject.servlet.ServletModule;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import org.traccar.broadcast.BroadcastService;
import org.traccar.schedule.ScheduleManager;
import java.io.File;
@@ -122,7 +123,7 @@ public final class Main {
services.add(injector.getInstance(ServerManager.class));
services.add(Context.getWebServer());
services.add(injector.getInstance(ScheduleManager.class));
- services.add(Context.getBroadcastService());
+ services.add(injector.getInstance(BroadcastService.class));
for (LifecycleObject service : services) {
if (service != null) {