Do not wrap IOException with IOException
This commit is contained in:
parent
e376888d48
commit
b6d5593e6a
|
@ -155,6 +155,9 @@ public class BlockingReadHandler<E> extends ChannelInboundMessageHandlerAdapter<
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (e instanceof IOException) {
|
||||||
|
throw (IOException) e;
|
||||||
|
}
|
||||||
if (e instanceof Throwable) {
|
if (e instanceof Throwable) {
|
||||||
throw (IOException) new IOException().initCause((Throwable) e);
|
throw (IOException) new IOException().initCause((Throwable) e);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user