aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/MainModule.java
diff options
context:
space:
mode:
authorEdward Valley <ed.valley@yandex.com>2020-02-15 20:23:08 -0500
committerEdward Valley <ed.valley@yandex.com>2020-02-15 20:23:08 -0500
commitf8c83c4f7f517b7482bdf7f29a3704903b876855 (patch)
tree9c7c007cbab013b3804b9d7568877992cde8e20f /src/main/java/org/traccar/MainModule.java
parent3c71ac47b4515fb799e67a18b18d722bea4d2241 (diff)
downloadtrackermap-server-f8c83c4f7f517b7482bdf7f29a3704903b876855.tar.gz
trackermap-server-f8c83c4f7f517b7482bdf7f29a3704903b876855.tar.bz2
trackermap-server-f8c83c4f7f517b7482bdf7f29a3704903b876855.zip
Changes after review
Diffstat (limited to 'src/main/java/org/traccar/MainModule.java')
-rw-r--r--src/main/java/org/traccar/MainModule.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/MainModule.java b/src/main/java/org/traccar/MainModule.java
index 3acd19b6a..24448ef51 100644
--- a/src/main/java/org/traccar/MainModule.java
+++ b/src/main/java/org/traccar/MainModule.java
@@ -73,6 +73,7 @@ import org.traccar.reports.model.TripsConfig;
import javax.annotation.Nullable;
import javax.ws.rs.client.Client;
+import io.netty.util.Timer;
public class MainModule extends AbstractModule {
@@ -375,6 +376,12 @@ public class MainModule extends AbstractModule {
return new DriverEventHandler(identityManager);
}
+ @Singleton
+ @Provides
+ public static Timer provideGlobalTimer() {
+ return GlobalTimer.getTimer();
+ }
+
@Override
protected void configure() {
binder().requireExplicitBindings();