aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/Main.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-06-16 15:07:29 -0700
committerAnton Tananaev <anton@traccar.org>2022-06-16 15:07:29 -0700
commitb47eca7a90438e738eb1486664717cccc277865f (patch)
tree653c6301738d0e20976c323faf8df6a26b38efb6 /src/main/java/org/traccar/Main.java
parent51cdee534cd9990d1de173814fe95c55dead4934 (diff)
downloadtrackermap-server-b47eca7a90438e738eb1486664717cccc277865f.tar.gz
trackermap-server-b47eca7a90438e738eb1486664717cccc277865f.tar.bz2
trackermap-server-b47eca7a90438e738eb1486664717cccc277865f.zip
Refactor web server code
Diffstat (limited to 'src/main/java/org/traccar/Main.java')
-rw-r--r--src/main/java/org/traccar/Main.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/Main.java b/src/main/java/org/traccar/Main.java
index 72eeb5885..e3286fd5e 100644
--- a/src/main/java/org/traccar/Main.java
+++ b/src/main/java/org/traccar/Main.java
@@ -137,7 +137,11 @@ public final class Main {
LOGGER.info("Stopping server...");
for (var service : services) {
- service.stop();
+ try {
+ service.stop();
+ } catch (Exception e) {
+ throw new RuntimeException(e);
+ }
}
}));
} catch (Exception e) {