aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-30 12:50:35 +0300
committerGravatar Vitaly Takmazov2018-01-30 12:50:35 +0300
commit9c22987d6309b91fbe41bd47e410b1f809144c41 (patch)
treed5420f68f12e5d85c997fcb5a2bd90272369fc15 /juick-xmpp
parent7ed10201d5e81c405e93bd8904d221652b0bc7fd (diff)
xmpp: fix dialback
Diffstat (limited to 'juick-xmpp')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/XMPPServer.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java
index 4b3470a7..15e2ba46 100644
--- a/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java
+++ b/juick-xmpp/src/main/java/com/juick/components/XMPPServer.java
@@ -256,6 +256,8 @@ public class XMPPServer implements ConnectionListener, AutoCloseable {
try {
Socket socket = new Socket();
socket.connect(DNSQueries.getServerAddress(to));
+ connectionOut.setInputStream(socket.getInputStream());
+ connectionOut.setOutputStream(socket.getOutputStream());
addConnectionOut(connectionOut, Optional.of(socket));
connectionOut.addChildParser(new JuickMessage());
connectionOut.connect();