From 5005833a6f4437c7ad0d3d36bbd8b2da99a904ee Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 6 Jul 2016 20:13:23 +0300 Subject: fix initialization --- src/main/java/com/juick/xmpp/s2s/XMPPComponent.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/main/java/com/juick/xmpp') 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)); -- cgit v1.2.3