Mercurial > hg > Members > tatsuki > Alice
changeset 43:ff33af300567
add outbound close
author | kazz <kazz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 03 Feb 2012 15:15:01 +0900 |
parents | 92aeb6e34683 |
children | 73158dc54c59 |
files | src/alice/daemon/IncomingTcpConnection.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/daemon/IncomingTcpConnection.java Fri Feb 03 14:59:05 2012 +0900 +++ b/src/alice/daemon/IncomingTcpConnection.java Fri Feb 03 15:15:01 2012 +0900 @@ -80,6 +80,11 @@ break; } } catch (ClosedChannelException e) { + try { + connection.sendQueue.put(new Command(CommandType.CLOSE, null, null, null, 0, 0, null, null, null)); + } catch (InterruptedException e1) { + e1.printStackTrace(); + } return; } catch (IOException e) { e.printStackTrace();