On 8/8/07, mat <[EMAIL PROTECTED]> wrote:
>   public void exceptionCaught(IoSession session, Throwable cause) {
>        cause.printStackTrace();
>
>        if (cause instanceof IOException)
>           return;
>
>        session.close();
>    }

It's OK to call session.close() many times, so you don't need the if block.

HTH,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to