From ffea35282c200cfbd1389093a411dea55bb39c8c Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Tue, 9 Jun 2015 21:43:26 +0200 Subject: [PATCH] Don't make NotConnectedException fatal If such an exception ever happes when running a integration, then the framework should not abort, but instead log the exception so that other information is also logged. --- .../smack/inttest/SmackIntegrationTestFramework.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java index ae51e2f4b..5f8845e4b 100644 --- a/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java +++ b/smack-integration-test/src/main/java/org/igniterealtime/smack/inttest/SmackIntegrationTestFramework.java @@ -566,11 +566,8 @@ public class SmackIntegrationTestFramework { return connection; } - private static Exception throwFatalException(Throwable e) throws Error, NotConnectedException, NoResponseException, + private static Exception throwFatalException(Throwable e) throws Error, NoResponseException, InterruptedException { - if (e instanceof NotConnectedException) { - throw (NotConnectedException) e; - } if (e instanceof NoResponseException) { throw (NoResponseException) e; }