aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2020-08-27 23:45:17 -0700
committerAnton Tananaev <anton.tananaev@gmail.com>2020-08-27 23:45:17 -0700
commit27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de (patch)
tree4599b7b83a9fd83b8fe0f1cb6afbf4f5fbc24dda /src/main/java/org/traccar/Main.java
parent6c3c6c5ead98e38b152685dd3528c0f70cdcac50 (diff)
downloadtrackermap-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.tar.gz
trackermap-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.tar.bz2
trackermap-server-27004f3b9c32ebf3a9f99fa2388ebcbd3fcfb5de.zip
Add device inactivity event
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r--src/main/java/org/traccar/Main.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java
index a0d93dbc8..59afab3a5 100644
--- a/src/main/java/org/traccar/Main.java
+++ b/src/main/java/org/traccar/Main.java
@@ -144,6 +144,7 @@ public final class Main {
if (Context.getWebServer() != null) {
Context.getWebServer().start();
}
+ Context.getScheduleManager().start();
scheduleHealthCheck();
scheduleDatabaseCleanup();
@@ -153,6 +154,7 @@ public final class Main {
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
LOGGER.info("Shutting down server...");
+ Context.getScheduleManager().stop();
if (Context.getWebServer() != null) {
Context.getWebServer().stop();
}