aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-07-11 17:43:33 +0300
committerGravatar Vitaly Takmazov2016-07-11 17:43:33 +0300
commit39d3d0a4693bc985641b4e2372e0010b26ff0030 (patch)
tree20f94bdc7d3ce3299c397205be617befd040b7ca
parent0cc4f35bfc0aaf70414e9e0a084147cefe1a38b3 (diff)
handle SocketException in s2s in
-rw-r--r--juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java b/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
index 345caea9..7181f1c2 100644
--- a/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
+++ b/juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java
@@ -14,6 +14,7 @@ import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.Socket;
+import java.net.SocketException;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
@@ -154,7 +155,7 @@ public class ConnectionIn extends Connection implements Runnable {
LOGGER.warning("STREAM " + streamID + " FINISHED");
xmpp.removeConnectionIn(this);
closeConnection();
- } catch (EOFException ex) {
+ } catch (EOFException | SocketException ex) {
LOGGER.info(String.format("STREAM %s CLOSED (dirty)", streamID));
xmpp.removeConnectionIn(this);
closeConnection();