From e227f5c54cbf9d2d20fde3893b36b6c49b42392b Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 2 Apr 2018 17:24:50 +0300 Subject: xmpp delay --- .../src/main/java/com/juick/www/configuration/XMPPConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main') 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; -- cgit v1.2.3