aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 12:19:46 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-03-09 12:19:46 -0800
commit2af6e4cc6255f59acaa17e6763063b775d7ba1ea (patch)
treed95d2aeb584eb2c8c5709ea727e881aa1c4fc8cd /src/org/traccar/BasePipelineFactory.java
parent8018a9269789d532431ed455b82c3a67acdd0e50 (diff)
downloadtrackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.tar.gz
trackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.tar.bz2
trackermap-server-2af6e4cc6255f59acaa17e6763063b775d7ba1ea.zip
Refactor fuel drop manager
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 0187e1d3f..5cadfb2a6 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -58,7 +58,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
private boolean eventsEnabled;
private int timeout;
- private FuelDropEventHandler fuelDropEventHandler;
private MotionEventHandler motionEventHandler;
private GeofenceEventHandler geofenceEventHandler;
private AlertEventHandler alertEventHandler;
@@ -75,7 +74,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
}
if (eventsEnabled) {
- fuelDropEventHandler = new FuelDropEventHandler();
motionEventHandler = Context.getMotionEventHandler();
geofenceEventHandler = new GeofenceEventHandler();
alertEventHandler = new AlertEventHandler();
@@ -160,7 +158,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
pipeline,
Main.getInjector().getInstance(CommandResultEventHandler.class),
Main.getInjector().getInstance(OverspeedEventHandler.class),
- fuelDropEventHandler,
+ Main.getInjector().getInstance(FuelDropEventHandler.class),
motionEventHandler,
geofenceEventHandler,
alertEventHandler,