aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-02-01 22:17:33 +0300
committerGravatar Vitaly Takmazov2016-02-01 22:17:33 +0300
commitc8d875bfcf1b040881e9c18282905a1ff805eb0c (patch)
treef99b8b119090de4cca12110a30ac98481d01c6dc /src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
parenta725625b958eb13bea7ff2337dde519deff21845 (diff)
refactoring
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/XMPPComponent.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/XMPPComponent.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
index 9be8c744..50d2c1e4 100644
--- a/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
+++ b/src/main/java/com/juick/xmpp/s2s/XMPPComponent.java
@@ -24,7 +24,7 @@ public class XMPPComponent implements ServletContextListener {
private static final Logger LOGGER = Logger.getLogger(XMPPComponent.class.getName());
- public static final ExecutorService executorService = Executors.newCachedThreadPool();
+ public static final ExecutorService executorService = Executors.newWorkStealingPool();
public static String HOSTNAME = null;
public static String STATSFILE = null;
@@ -143,7 +143,8 @@ public class XMPPComponent implements ServletContextListener {
}
if (!haveAnyConn) {
- XMPPComponent.executorService.submit(new ConnectionOut(hostname));
+ ConnectionOut connectionOut = new ConnectionOut(hostname);
+ connectionOut.parseStream();
}
}