diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:04:08 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-03-09 17:04:08 -0800 |
commit | 5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44 (patch) | |
tree | 637b9f89086bad578bbad04fd52e80bf379b8beb /src/org/traccar/BasePipelineFactory.java | |
parent | 2a584c67a1663897d98e7c64fe161c88b30ef314 (diff) | |
download | trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.tar.gz trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.tar.bz2 trackermap-server-5c084a0b2961dbfc3cd85a386fefe0b0da6c0c44.zip |
Refactor ignition event handler
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java index 5e194c856..550145860 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 IgnitionEventHandler ignitionEventHandler; private MaintenanceEventHandler maintenanceEventHandler; private DriverEventHandler driverEventHandler; @@ -71,7 +70,6 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> { } if (eventsEnabled) { - ignitionEventHandler = new IgnitionEventHandler(); maintenanceEventHandler = new MaintenanceEventHandler(); driverEventHandler = new DriverEventHandler(); } @@ -156,7 +154,7 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> { Main.getInjector().getInstance(MotionEventHandler.class), Main.getInjector().getInstance(GeofenceEventHandler.class), Main.getInjector().getInstance(AlertEventHandler.class), - ignitionEventHandler, + Main.getInjector().getInstance(IgnitionEventHandler.class), maintenanceEventHandler, driverEventHandler); } |