aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 20:00:11 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 20:00:11 -0800
commitc7e9f996ed7d183442a7dd2fbbc5c9329981f261 (patch)
tree7b4ffe903970396e04a2bcdbe0acd66cba156395 /src/org/traccar/BasePipelineFactory.java
parent312f5d2a3af3ec53cc6ff73cd3424d68a2774dcd (diff)
downloadtrackermap-server-c7e9f996ed7d183442a7dd2fbbc5c9329981f261.tar.gz
trackermap-server-c7e9f996ed7d183442a7dd2fbbc5c9329981f261.tar.bz2
trackermap-server-c7e9f996ed7d183442a7dd2fbbc5c9329981f261.zip
Refactor maintenance handler
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index e3328a524..57e7322aa 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -59,7 +59,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
private boolean eventsEnabled;
private int timeout;
- private MaintenanceEventHandler maintenanceEventHandler;
private DriverEventHandler driverEventHandler;
public BasePipelineFactory(TrackerServer server, String protocol) {
@@ -71,7 +70,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (eventsEnabled) {
- maintenanceEventHandler = new MaintenanceEventHandler();
driverEventHandler = new DriverEventHandler();
}
}
@@ -153,7 +151,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
Main.getInjector().getInstance(GeofenceEventHandler.class),
Main.getInjector().getInstance(AlertEventHandler.class),
Main.getInjector().getInstance(IgnitionEventHandler.class),
- maintenanceEventHandler,
+ Main.getInjector().getInstance(MaintenanceEventHandler.class),
driverEventHandler);
}