From b6d5593e6aa5eea014569bdc800fb93635c53b3a Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sun, 10 Jun 2012 04:30:56 +0900 Subject: [PATCH] Do not wrap IOException with IOException --- .../main/java/io/netty/handler/queue/BlockingReadHandler.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/handler/src/main/java/io/netty/handler/queue/BlockingReadHandler.java b/handler/src/main/java/io/netty/handler/queue/BlockingReadHandler.java index eab415f24e..8aefd34e6b 100644 --- a/handler/src/main/java/io/netty/handler/queue/BlockingReadHandler.java +++ b/handler/src/main/java/io/netty/handler/queue/BlockingReadHandler.java @@ -155,6 +155,9 @@ public class BlockingReadHandler extends ChannelInboundMessageHandlerAdapter< return null; } + if (e instanceof IOException) { + throw (IOException) e; + } if (e instanceof Throwable) { throw (IOException) new IOException().initCause((Throwable) e); }