diff options
author | Ugnich Anton | 2013-04-14 06:43:53 +0700 |
---|---|---|
committer | Ugnich Anton | 2013-04-14 06:43:53 +0700 |
commit | 9239345c909ecdba66d061bd6d7a78cdf9b605c3 (patch) | |
tree | 536f8681302cba780d2e7a94aecbe4dbf0884269 /src | |
parent | 1c70f9be446a5002d33e18f344429f3b75cb3a48 (diff) |
socket.close
Diffstat (limited to 'src')
-rw-r--r-- | src/com/juick/jabber/ws/Main.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/juick/jabber/ws/Main.java b/src/com/juick/jabber/ws/Main.java index 9107c408a..32f3e9629 100644 --- a/src/com/juick/jabber/ws/Main.java +++ b/src/com/juick/jabber/ws/Main.java @@ -141,16 +141,19 @@ public class Main implements XmppListener, MessageListener { } else { System.out.println(sChannel.socket().getRemoteSocketAddress().toString() + " INVALID FRAME"); // System.out.println("FOUR"); + sChannel.socket().close(); sChannel.close(); selKey.cancel(); } } else { + sChannel.socket().close(); sChannel.close(); selKey.cancel(); // System.out.println("SIX"); } } catch (IOException e) { System.err.println(e); + sChannel.socket().close(); sChannel.close(); // System.out.println("FIVE"); selKey.cancel(); |