aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-06 20:13:23 +0300
committerGravatar Vitaly Takmazov2016-07-06 20:13:23 +0300
commit5005833a6f4437c7ad0d3d36bbd8b2da99a904ee (patch)
tree0c1eb5138582570d3d108d441696759f91452e8b /src/main/java/com/juick/xmpp/s2s
parent6933a80515e454b45e03c1d3609093ad1abcef92 (diff)
fix initialization
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/XMPPComponent.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
index 9b8bb07e..21efaeab 100644
--- a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
+++ b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
@@ -195,7 +195,8 @@ public class XMPPComponent implements ServletContextListener, Stream.StreamListe
router.addChildParser(new JuickMessage());
router.addListener((Stream.StreamListener) this);
router.addListener((Message.MessageListener) this);
- router.addListener((Iq.IqListener) this);
+ router.addListener((Iq.IqListener) this);
+ executorService.submit(() -> router.startParsing());
executorService.submit(() -> {
router.startParsing();
executorService.submit(new CleaningUp(this));