1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 05:52:06 +01:00

Also catch SmackException in Socks5BytestreamRequest

and use try/multi-catch.
This commit is contained in:
Florian Schmaus 2016-11-05 20:02:25 +01:00
parent 4f7324103c
commit 095b5c85a1

View file

@ -239,13 +239,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
break; break;
} }
catch (TimeoutException e) { catch (TimeoutException | IOException | SmackException | XMPPException e) {
incrementConnectionFailures(address);
}
catch (IOException e) {
incrementConnectionFailures(address);
}
catch (XMPPException e) {
incrementConnectionFailures(address); incrementConnectionFailures(address);
} }