From cd3ad1e7ef0fe1b66537374be8d3e4f1221cb24d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 8 Jul 2016 16:43:10 +0300 Subject: s2s: handle SocketException --- juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main') diff --git a/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index e604a5b4..2552bfcd 100644 --- a/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -10,6 +10,7 @@ import javax.net.ssl.SSLSocket; import java.io.EOFException; import java.io.IOException; import java.net.Socket; +import java.net.SocketException; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; @@ -145,7 +146,7 @@ public class ConnectionOut extends Connection implements Runnable { LOGGER.warning("STREAM TO " + to + " " + streamID + " FINISHED"); xmpp.removeConnectionOut(ConnectionOut.this); closeConnection(); - } catch (EOFException eofex) { + } catch (EOFException | SocketException eofex) { LOGGER.info(String.format("STREAM %s %s CLOSED (dirty)", to, streamID)); xmpp.removeConnectionOut(ConnectionOut.this); closeConnection(); -- cgit v1.2.3