Repository: mina-sshd Updated Branches: refs/heads/master 3ddd221b3 -> da410fcd5
SSHD-388 - SSH server fails during bundle update Project: http://git-wip-us.apache.org/repos/asf/mina-sshd/repo Commit: http://git-wip-us.apache.org/repos/asf/mina-sshd/commit/ae2b9005 Tree: http://git-wip-us.apache.org/repos/asf/mina-sshd/tree/ae2b9005 Diff: http://git-wip-us.apache.org/repos/asf/mina-sshd/diff/ae2b9005 Branch: refs/heads/master Commit: ae2b90052729a1dc7bf0ad88a8cb6aa86e5d7f4c Parents: 19d5e8e Author: Jonathan Anstey <[email protected]> Authored: Fri Dec 12 12:25:09 2014 -0330 Committer: Jonathan Anstey <[email protected]> Committed: Fri Dec 19 11:55:57 2014 -0330 ---------------------------------------------------------------------- .../sshd/common/io/DefaultIoServiceFactoryFactory.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mina-sshd/blob/ae2b9005/sshd-core/src/main/java/org/apache/sshd/common/io/DefaultIoServiceFactoryFactory.java ---------------------------------------------------------------------- diff --git a/sshd-core/src/main/java/org/apache/sshd/common/io/DefaultIoServiceFactoryFactory.java b/sshd-core/src/main/java/org/apache/sshd/common/io/DefaultIoServiceFactoryFactory.java index 6cd410d..7bf42c0 100644 --- a/sshd-core/src/main/java/org/apache/sshd/common/io/DefaultIoServiceFactoryFactory.java +++ b/sshd-core/src/main/java/org/apache/sshd/common/io/DefaultIoServiceFactoryFactory.java @@ -68,13 +68,13 @@ public class DefaultIoServiceFactoryFactory implements IoServiceFactoryFactory { } private static <T> T tryLoad(ServiceLoader<T> loader) { - Iterator<T> it = loader.iterator(); - while (it.hasNext()) { - try { - return it.next(); - } catch (Throwable t) { - LOGGER.trace("Exception while loading factory from ServiceLoader", t); + try { + Iterator<T> it = loader.iterator(); + while (it.hasNext()) { + return it.next(); } + } catch (Throwable t) { + LOGGER.trace("Exception while loading factory from ServiceLoader", t); } return null; }
