Updated Branches:
  refs/heads/master 092e05ea4 -> 8bfdf38cd

Ignore interrupt exceptions in EchoShellFactory

Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo
Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/08a9c612
Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/08a9c612
Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/08a9c612

Branch: refs/heads/master
Commit: 08a9c6128efd98bfad0f3b376813be2fb8bcdda2
Parents: 092e05e
Author: Guillaume Nodet <[email protected]>
Authored: Mon Jul 22 21:27:05 2013 +0200
Committer: Guillaume Nodet <[email protected]>
Committed: Mon Jul 22 21:27:05 2013 +0200

----------------------------------------------------------------------
 .../src/test/java/org/apache/sshd/util/EchoShellFactory.java      | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/08a9c612/sshd-core/src/test/java/org/apache/sshd/util/EchoShellFactory.java
----------------------------------------------------------------------
diff --git a/sshd-core/src/test/java/org/apache/sshd/util/EchoShellFactory.java 
b/sshd-core/src/test/java/org/apache/sshd/util/EchoShellFactory.java
index 1d26309..742d2b6 100644
--- a/sshd-core/src/test/java/org/apache/sshd/util/EchoShellFactory.java
+++ b/sshd-core/src/test/java/org/apache/sshd/util/EchoShellFactory.java
@@ -22,6 +22,7 @@ import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;
+import java.io.InterruptedIOException;
 import java.io.OutputStream;
 
 import org.apache.sshd.common.Factory;
@@ -105,6 +106,8 @@ public class EchoShellFactory implements Factory<Command> {
                         return;
                     }
                 }
+            } catch (InterruptedIOException e) {
+                // Ignore
             } catch (Exception e) {
                 e.printStackTrace();
             } finally {

Reply via email to