aboutsummaryrefslogtreecommitdiff
path: root/juick-server-xmpp/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server-xmpp/src/main/java')
-rw-r--r--juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java21
1 files changed, 8 insertions, 13 deletions
diff --git a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
index b1fff9fd..3538077a 100644
--- a/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
+++ b/juick-server-xmpp/src/main/java/com/juick/server/XMPPConnection.java
@@ -104,8 +104,6 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
private int componentPort;
@Value("${xmpp_password:secret}")
private String password;
- @Value("${xmpp_disabled:false}")
- private boolean isXmppDisabled;
@Value("${upload_tmp_dir:#{systemEnvironment['TEMP'] ?: '/tmp'}}")
private String tmpDir;
@Value("${img_path:#{systemEnvironment['TEMP'] ?: '/tmp'}}")
@@ -284,17 +282,14 @@ public class XMPPConnection implements StanzaListener, NotificationListener {
logger.info("component connected");
}
});
- if (!isXmppDisabled) {
- service.submit(() -> {
- try {
- Thread.sleep(3000);
- router.connect();
- broadcastPresence(null);
- } catch (InterruptedException | XmppException e) {
- logger.warn("xmpp exception", e);
- }
- });
- }
+ service.submit(() -> {
+ try {
+ router.connect();
+ broadcastPresence(null);
+ } catch (XmppException e) {
+ logger.warn("xmpp exception", e);
+ }
+ });
}
private String stanzaToString(Stanza stanza) throws XMLStreamException, JAXBException {