aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api/src/main/java/com/juick')
-rw-r--r--juick-api/src/main/java/com/juick/api/Main.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/juick-api/src/main/java/com/juick/api/Main.java b/juick-api/src/main/java/com/juick/api/Main.java
index 2ca126d0..d5851c12 100644
--- a/juick-api/src/main/java/com/juick/api/Main.java
+++ b/juick-api/src/main/java/com/juick/api/Main.java
@@ -481,4 +481,14 @@ public class Main extends HttpServlet {
}
}
}
+ @Override
+ public void destroy() {
+ try {
+ if (xmpp != null) {
+ xmpp.close();
+ }
+ } catch (Exception e) {
+ log("exception on destroy", e);
+ }
+ }
}