diff options
author | Vitaly Takmazov | 2018-04-02 17:24:50 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-02 17:24:50 +0300 |
commit | e227f5c54cbf9d2d20fde3893b36b6c49b42392b (patch) | |
tree | 23c65a0a09ecbf82946470413ba7c58c995288df /juick-www/src/main/java/com/juick | |
parent | e4875904c53d80e72f89b9fdec47f32ed2714f9d (diff) |
xmpp delay
Diffstat (limited to 'juick-www/src/main/java/com/juick')
-rw-r--r-- | juick-www/src/main/java/com/juick/www/configuration/XMPPConfiguration.java | 3 |
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; |