You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by GitBox <gi...@apache.org> on 2020/07/30 08:27:20 UTC

[GitHub] [mina-sshd] gnodet commented on a change in pull request #153: Do not rethrow, but always wrap in an IOException

gnodet commented on a change in pull request #153:
URL: https://github.com/apache/mina-sshd/pull/153#discussion_r462828244



##########
File path: sshd-common/src/main/java/org/apache/sshd/common/future/AbstractSshFuture.java
##########
@@ -131,15 +125,6 @@ public boolean awaitUninterruptibly(long timeoutMillis) {
 
         if (Throwable.class.isAssignableFrom(actualType)) {
             Throwable t = GenericUtils.peelException((Throwable) value);
-            if (t != value) {
-                value = t;
-                actualType = value.getClass();
-            }
-
-            if (IOException.class.isAssignableFrom(actualType)) {
-                throw (IOException) value;
-            }
-

Review comment:
       The `value` variable isn't used, but the disconnect code is important to keep, I agree.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org