1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00:02: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;
}
catch (TimeoutException e) {
incrementConnectionFailures(address);
}
catch (IOException e) {
incrementConnectionFailures(address);
}
catch (XMPPException e) {
catch (TimeoutException | IOException | SmackException | XMPPException e) {
incrementConnectionFailures(address);
}