From 5f2f072d694275f750d1ee139386cc64a0670f4f Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Fri, 13 Feb 2009 11:33:22 +0000 Subject: [PATCH] Fixed a couple bugs in IdleStateHandler, caused by blind copy and paste --- .../org/jboss/netty/handler/timeout/IdleStateHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java b/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java index 42752a170d..9cf8fe5399 100644 --- a/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java +++ b/src/main/java/org/jboss/netty/handler/timeout/IdleStateHandler.java @@ -237,7 +237,7 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler writerIdleTimeout = timer.newTimeout(this, writerIdleTimeMillis, TimeUnit.MILLISECONDS); try { - channelIdle(ctx, IdleState.WRITER_IDLE, lastReadTime); + channelIdle(ctx, IdleState.WRITER_IDLE, lastWriteTime); } catch (Throwable t) { fireExceptionCaught(ctx, t); } @@ -271,7 +271,7 @@ public class IdleStateHandler extends SimpleChannelUpstreamHandler allIdleTimeout = timer.newTimeout(this, allIdleTimeMillis, TimeUnit.MILLISECONDS); try { - channelIdle(ctx, IdleState.ALL_IDLE, lastReadTime); + channelIdle(ctx, IdleState.ALL_IDLE, lastIoTime); } catch (Throwable t) { fireExceptionCaught(ctx, t); }