aboutsummaryrefslogtreecommitdiff
path: root/juick-www/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-08 16:43:10 +0300
committerGravatar Vitaly Takmazov2016-07-08 16:43:10 +0300
commitcd3ad1e7ef0fe1b66537374be8d3e4f1221cb24d (patch)
tree7407406c03676e7154a445059456a7c299eb8a14 /juick-www/src/main
parenta928be44a5aadf8f55ded02554949c61b995335b (diff)
s2s: handle SocketException
Diffstat (limited to 'juick-www/src/main')
-rw-r--r--juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java3
1 files changed, 2 insertions, 1 deletions
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();