aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java b/juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java
index 1396f9f9..0fc86e2a 100644
--- a/juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java
+++ b/juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java
@@ -34,8 +34,9 @@ public class XMPPConfiguration {
ExternalComponent xmpp = ExternalComponent.create(xmppJid, xmppPassword, configuration, xmppHost, xmppPort);
xmpp.addConnectionListener(e -> logger.error(e.toString(), e.getCause()));
if (!isXmppDisabled) try {
+ Thread.sleep(3000);
xmpp.connect();
- } catch (XmppException e) {
+ } catch (XmppException | InterruptedException e) {
logger.error("xmpp extension", e);
}
return xmpp;