mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 17:52:06 +01:00
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.
This commit is contained in:
parent
b9782aa6bc
commit
ffea35282c
1 changed files with 1 additions and 4 deletions
|
@ -566,11 +566,8 @@ public class SmackIntegrationTestFramework {
|
||||||
return connection;
|
return connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Exception throwFatalException(Throwable e) throws Error, NotConnectedException, NoResponseException,
|
private static Exception throwFatalException(Throwable e) throws Error, NoResponseException,
|
||||||
InterruptedException {
|
InterruptedException {
|
||||||
if (e instanceof NotConnectedException) {
|
|
||||||
throw (NotConnectedException) e;
|
|
||||||
}
|
|
||||||
if (e instanceof NoResponseException) {
|
if (e instanceof NoResponseException) {
|
||||||
throw (NoResponseException) e;
|
throw (NoResponseException) e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue