From 14c5ddd69a6f76a96d7eb98afb01caac79308553 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 1 Feb 2016 19:10:42 +0300 Subject: fix connectionout, part 2 --- src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/juick/xmpp/s2s') diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index 0101e340..9a8dd0a8 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -110,7 +110,7 @@ public class ConnectionOut extends Connection implements Runnable { } LOGGER.warning("STREAM TO " + to + " " + streamID + " FINISHED"); - XMPPComponent.removeConnectionOut(this); + XMPPComponent.removeConnectionOut(ConnectionOut.this); closeConnection(); } catch (XmlPullParserException e) { e.printStackTrace(); @@ -126,8 +126,7 @@ public class ConnectionOut extends Connection implements Runnable { } }); - - + Thread.currentThread().join(); } catch (Exception e) { LOGGER.warning(e.toString()); XMPPComponent.removeConnectionOut(this); -- cgit v1.2.3