From 39d3d0a4693bc985641b4e2372e0010b26ff0030 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 11 Jul 2016 17:43:33 +0300 Subject: handle SocketException in s2s in --- juick-www/src/main/java/com/juick/xmpp/s2s/ConnectionIn.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-www/src/main/java') 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(); -- cgit v1.2.3