aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/Main.java
diff options
context:
space:
mode:
authornamo <namo@gurtam.com>2017-10-13 16:03:25 +0300
committernamo <namo@gurtam.com>2017-10-13 16:06:22 +0300
commit5193bd866734b6fea1bf96b5d975c52f09cbec2e (patch)
treecfac8050c31aec4d9c289f74b66f146acacd865c /src/org/traccar/Main.java
parente876250991faccdca04a1f36ddaf847c9f392275 (diff)
downloadtrackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.tar.gz
trackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.tar.bz2
trackermap-server-5193bd866734b6fea1bf96b5d975c52f09cbec2e.zip
initial flespi integtation: pulling messages from flespi channels and updating devices' position
Diffstat (limited to 'src/org/traccar/Main.java')
-rw-r--r--src/org/traccar/Main.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/org/traccar/Main.java b/src/org/traccar/Main.java
index 1e2db2693..0d7c2ecf0 100644
--- a/src/org/traccar/Main.java
+++ b/src/org/traccar/Main.java
@@ -15,9 +15,11 @@
*/
package org.traccar;
+import org.traccar.flespi.FlespiClient;
import org.traccar.helper.Log;
import java.sql.SQLException;
+import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import java.util.Locale;
@@ -56,6 +58,10 @@ public final class Main {
public void run() {
Log.info("Shutting down server...");
+ List<FlespiClient> flespiClients = Context.getFlespiClients();
+ for (FlespiClient flespiClient : flespiClients) {
+ flespiClient.stopPullTask();
+ }
if (Context.getWebServer() != null) {
Context.getWebServer().stop();
}