diff options
author | Anton Tananaev <anton@traccar.org> | 2022-06-16 15:07:29 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-06-16 15:07:29 -0700 |
commit | b47eca7a90438e738eb1486664717cccc277865f (patch) | |
tree | 653c6301738d0e20976c323faf8df6a26b38efb6 /src/main/java/org/traccar/Main.java | |
parent | 51cdee534cd9990d1de173814fe95c55dead4934 (diff) | |
download | trackermap-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.java | 6 |
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) { |