aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/xmpp/s2s/ConnectionIn.java')
-rw-r--r--src/main/java/com/juick/xmpp/s2s/ConnectionIn.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
index 3fd514d0..c215e375 100644
--- a/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
+++ b/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
@@ -23,7 +23,7 @@ import java.util.logging.Logger;
*
* @author ugnich
*/
-public class ConnectionIn extends Connection implements Runnable {
+public class ConnectionIn extends Connection {
private static final Logger LOGGER = Logger.getLogger(ConnectionIn.class.getName());
@@ -37,8 +37,7 @@ public class ConnectionIn extends Connection implements Runnable {
streamID = UUID.randomUUID().toString();
}
- @Override
- public void run() {
+ public void parseStream() {
LOGGER.info("STREAM FROM ? " + streamID + " START");
try {
parser.setInput(new InputStreamReader(Channels.newInputStream(socket)));
@@ -90,7 +89,7 @@ public class ConnectionIn extends Connection implements Runnable {
c.sendDialbackVerify(streamID, dbKey);
} else {
c = new ConnectionOut(dfrom, streamID, dbKey);
- XMPPComponent.executorService.submit(c);
+ c.parseStream();
}
} else {
throw new Exception("STREAM FROM " + dfrom + " " + streamID + " DIALBACK RESULT FAIL");