aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
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) {